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 12-18-2012, 02:46 PM   PM User | #1
countrydj
Regular Coder

 
Join Date: Nov 2011
Location: Preston, UK
Posts: 130
Thanks: 36
Thanked 0 Times in 0 Posts
countrydj is an unknown quantity at this point
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
countrydj is offline   Reply With Quote
Old 12-18-2012, 02:57 PM   PM User | #2
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
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)
__________________
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
Old 12-18-2012, 06:43 PM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,459
Thanks: 0
Thanked 498 Times in 490 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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/
felgall is online now   Reply With Quote
Old 12-18-2012, 09:47 PM   PM User | #4
countrydj
Regular Coder

 
Join Date: Nov 2011
Location: Preston, UK
Posts: 130
Thanks: 36
Thanked 0 Times in 0 Posts
countrydj is an unknown quantity at this point
Hi Guys...
Many thanks for your help.
Firstly:
Quote:
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
countrydj 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 11:50 PM.


Advertisement
Log in to turn off these ads.