Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2009
    Posts
    199
    Thanks
    26
    Thanked 0 Times in 0 Posts

    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>

  • #2
    met
    met is offline
    Regular Coder
    Join Date
    Oct 2009
    Location
    United Kingdom
    Posts
    728
    Thanks
    4
    Thanked 119 Times in 119 Posts
    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" />

  • #3
    Regular Coder
    Join Date
    Jul 2009
    Posts
    199
    Thanks
    26
    Thanked 0 Times in 0 Posts
    ok i see. thanks it works now

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    FYI, alt and title are attributes and not tags.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •