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
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts

    Alt tag dows not show in Firefox or Chrome

    Can anybody tell me why my alt=" " tag does not show in Firefox or chrome.
    It shows OK in IE. I am using Firefox and / or Chrome, but also testing in IE9
    An example is:
    http://http://hughes-family-bakers.co.uk/

    Thanks,
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    First of all alt is an attribute, not called as a tag.
    It's used to show alternate text in place of an image displayed through <img> tag, when the browser is set not to display images.

    If you are trying to display a tootip, you need to use the title attribute. (IE erroneously show a tooltip, for an alt attribute)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    You need to turn off images if you want the alt text to show.

    If you want IE to work the same as other browsers then either add title="" to all your images to get IE to apply the standard or duplicate the alt text in the title so that all the browsers that follow the standard will display it.

    Of course the text to display to those who don't see the image is probably not appropriate to display to those who can in which case your title text ought to be different from your alt text.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    Regular Coder
    Join Date
    Nov 2011
    Location
    Preston, UK
    Posts
    131
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Hi Guys...
    Many thanks for your help.
    Firstly:
    First of all alt is an attribute, not called as a tag.
    Sorry for the misnomer. I stand corrected.

    I am now using 'title=' and 'alt=' attributes and all works fine.
    Thank you...
    The MAN, The MYTH, The LEGEND:
    John C
    ________________________________
    Support your local Country Music Club


  •  

    Posting Permissions

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