Login    Forum    Search    FAQ   Blog

Board index » Client-Side Development » HTML & CSS




 Page 1 of 1 [ 2 posts ] 



Author Message
 Post subject: alt text in the img tag not working in Firefox?
 Post Posted: Mon Mar 02, 2009 3:17 am 
Offline

Joined: Wed Feb 25, 2009 1:56 am
Posts: 3
Why does alt text in the img tag not working in Firefox?

please reply


Top 
 Post subject: Re: alt text in the img tag not working in Firefox?
 Post Posted: Tue Mar 03, 2009 2:35 am 
Offline

Joined: Wed Feb 25, 2009 1:53 pm
Posts: 7
Unlike Microsoft Internet Explorer Mozilla Firefox will not display the text used in the alternative tag since this text is meant to be used for accessibility and not meant as the text to be shown in the balloon text when the mouse is hovered over the image.
If you would like to have balloon text appear when the mouse hovers over an image add the "title" tag to the img html tag as shown in the below example.

eg1: <img src="xyz.jpg" alt="xyz" />

eg2: <img src="abc.jpg" alt="abc" title="abc" />

If you're using Mozilla Firefox you'll notice that the first example displays no balloon text with just the alt tag in the code. However, adding the title tag as seen in the second example will display balloon text when the mouse is hovered over the image.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 2 posts ] 




Board index » Client-Side Development » HTML & CSS


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron