...

View Full Version : alt tag not working



ketanco
11-04-2009, 10:36 PM
Hello,

the text in alt tag below does not show up on the website when you bring your mouse over the tshirt pictures. How can I fix it? The website is www.robotbuy.com

By the way, as an extra info, when I removed the document type declaration and just wrote html on the very top, it worked (but of course I need a document type declaration). I didn't have a particular reason to use that doc type anyway, but saw it as commonly used so just copied it. If I need to use another document type declaration what should it be? If not, how can I fix this problem?

<a target="_blank" href="pictures/myproducts/parent_picture.jpg"><img alt="click to enlarge picture" border="0" src="pictures/myproducts/parent_smallest.jpg" /></a>

met
11-04-2009, 10:39 PM
you need title for this purpose. alt is displayed when the user chooses not to display images/cant display them.



<img src="image.jpg" alt="This is an image but you can't see it" title="This image is called image.jpg" />

ketanco
11-04-2009, 10:41 PM
ok i see. thanks it works now

abduraooft
11-05-2009, 09:13 AM
FYI, alt and title are attributes and not tags.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum