Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2009, 09:36 PM   PM User | #1
ketanco
Regular Coder

 
Join Date: Jul 2009
Posts: 170
Thanks: 24
Thanked 0 Times in 0 Posts
ketanco is an unknown quantity at this point
alt tag not working

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>
ketanco is offline   Reply With Quote
Old 11-04-2009, 09:39 PM   PM User | #2
met
Regular Coder

 
Join Date: Oct 2009
Location: United Kingdom
Posts: 728
Thanks: 4
Thanked 119 Times in 119 Posts
met has a little shameless behaviour in the past
you need title for this purpose. alt is displayed when the user chooses not to display images/cant display them.

Code:
<img src="image.jpg" alt="This is an image but you can't see it" title="This image is called image.jpg" />
met is offline   Reply With Quote
Old 11-04-2009, 09:41 PM   PM User | #3
ketanco
Regular Coder

 
Join Date: Jul 2009
Posts: 170
Thanks: 24
Thanked 0 Times in 0 Posts
ketanco is an unknown quantity at this point
ok i see. thanks it works now
ketanco is offline   Reply With Quote
Old 11-05-2009, 08:13 AM   PM User | #4
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,680
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
FYI, alt and title are attributes and not tags.
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:09 PM.


Advertisement
Log in to turn off these ads.