+blackdog7 Posted February 24, 2015 Share Posted February 24, 2015 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? Quote Link to comment
+TheFrontRanger Posted February 24, 2015 Share Posted February 24, 2015 (edited) If you remove the img code, and leave just the link, does that work? Have you tried removing the alt attribute from the img src? Edited February 24, 2015 by TheFrontRanger Quote Link to comment
+blackdog7 Posted February 24, 2015 Author Share Posted February 24, 2015 I will try those suggestions. Thanks. Quote Link to comment
+niraD Posted February 24, 2015 Share Posted February 24, 2015 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/"> Quote Link to comment
+blackdog7 Posted February 24, 2015 Author Share Posted February 24, 2015 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. Quote Link to comment
+Chrysalides Posted February 24, 2015 Share Posted February 24, 2015 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:// Quote Link to comment
+blackdog7 Posted February 24, 2015 Author Share Posted February 24, 2015 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 Quote Link to comment
Recommended Posts
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.