Jump to content

Linking a website through image


blackdog7

Recommended Posts

I'm trying to add a link to the Earthcache website through an image on a cache page. I am absolutely ignorant when it comes to html/code. For some reason it says the link is broken when I try to use it.

 

The html I entered is:

 

<p style="text-align:center;"><a href="www.earthcache.org"><img alt src="http://s5.postimg.org/xnj82txrb/Earthcache_USGS.jpg" /></a></p>

 

Can someone help?

Link to comment
Have you tried removing the alt attribute from the img src?
Better yet, you could specify the text from the image as the alt attribute:

 

<img alt="Official EarthCache" src="http://s5.postimg.org/xnj82txrb/Earthcache_USGS.jpg" />

 

But that isn't where the problem with the link lies. The problem with the link likes in the difference between

<a href="www.earthcache.org"> and

<a href="http://www.earthcache.org/">

Link to comment

 

But that isn't where the problem with the link lies. The problem with the link likes in the difference between

<a href="www.earthcache.org"> and

<a href="http://www.earthcache.org/">

 

This maybe makes sense to me because it was acting as a link but it took me to a geocaching.com page saying the link was broken or page expired.

 

I'm away from the computer at the moment but can try again when I get home.

 

I figured I was making a simple mistake. Thanks again guys.

Link to comment

 

But that isn't where the problem with the link lies. The problem with the link likes in the difference between

<a href="www.earthcache.org"> and

<a href="http://www.earthcache.org/">

 

This maybe makes sense to me because it was acting as a link but it took me to a geocaching.com page saying the link was broken or page expired.

 

I'm away from the computer at the moment but can try again when I get home.

 

I figured I was making a simple mistake. Thanks again guys.

Yeah, you're providing a relative URL (so it appends www.earthcache.org to your current URL) instead of an absolute URL if you omit http://

Link to comment

 

But that isn't where the problem with the link lies. The problem with the link likes in the difference between

<a href="www.earthcache.org"> and

<a href="http://www.earthcache.org/">

 

This maybe makes sense to me because it was acting as a link but it took me to a geocaching.com page saying the link was broken or page expired.

 

I'm away from the computer at the moment but can try again when I get home.

 

I figured I was making a simple mistake. Thanks again guys.

Yeah, you're providing a relative URL (so it appends www.earthcache.org to your current URL) instead of an absolute URL if you omit http://

 

Problem solved. It's working perfectly.

 

Cheers

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...