Hey, I'm trying to get my ALT Tags to work for my images. It is currently not working but I am not getting any error message. This is my code: <div id="logo"><a href="<?php echo $this->baseurl ?>"><img src="<?php echo $this->baseurl ?>/templates/hypoc/images/logo.png" ALT="Hypo Relief"/></a></div> I'm not a programmer but I dabble with code when I can on my sites, is this an easy fix and if so how do I do it, currently my site is not showing the image text. My site url is www.hyporelief.com, this ALT tag is for the very top image logo with the word Hypochondriacs's Relief. Any help is greatly appreciated. Thanks, Mike
Use this. <div id="logo"><a title="Hypo Relief" href="/"><img src="/templates/hypoc/images/logo.png" alt="Hypo Relief"/></a></div> HTML: As image tag is covered by <a> tag so it will display <a> tag title first.
os master - THANKS! it works now, let me ask you why does it work now and does your code change the functionality of the site in anyway?
No, I simply gave title for <a tag. as <img tag was covered by <a tag so browser will display title of <a, not image ALT and you didn't give it so it was not displaying. Yes, now i have seen, it's displaying fine.