MSIE uses the alt tag to display text when the cursor rests over the image. However, FF uses a different tag. What is that tag?
Thanks!
Steve
| SitePoint Sponsor |





MSIE uses the alt tag to display text when the cursor rests over the image. However, FF uses a different tag. What is that tag?
Thanks!
Steve


Firefox uses the title attribute instead of the alt attribute on image tags. That doesn't mean you should omit the alt attribute which is still used for its intended purposes.
17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
→ Conversion tracking, click fraud detection, A/B testing and more.

Basically browsers display the content of the 'title' attribute when the mouse moves over any tag in the page that has a title attribute. Internet Explorer copies the alt attribute to the title attribute for images that do not have a separate title attribute. For consistent results across all bbrowsers simply make sure that all your images have a title attribute.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
I'm just wondering what the accessibility implications of this might be. Would a screen reader not read out both the title and alt values? In which case may be repeated if both were specified?
Personally I'd only use a title tag for where it was required, specify an alt tag for all images and ignore Internet Explorer's behavior.


Excuse me for one moment.
There Is No Such Thing As The ALT=""TAG (it's an attribute of the img element).
There, now where were we?
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Dan - put your head between your knees and breeeeathe deeply.... is that better now?


You never know. There might be an <alt> tag in HTML6 or XHTML3.![]()
Birnam wood is come to Dunsinane
Sorry, old habits (there's no title tag either)
Thought I'd better correct those before Dan's head explodedPersonally I'd only use a title attribute for where it was required, specify an alt attribute for all images and ignore Internet Explorer's behavior.![]()




You're safe.
Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
I can see it's going to be one of those days![]()


Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns





![]()
Thanks for the help. I'll keep both alt and title in place. Alt is needed to pass validation.
Regards,
Steve
this is a common firefox bug
As has been pointed out above, this is not a firefox bug. Internet Explorer wrongly uses the alt attribute as it's title text when none has been specified.
The title attribute should be displayed when you mouse over so if this is the effect you want then you should use the title attribute.
However, the right solution is to use the alt attribute on images, use the title attribute on elements that need a title and ignore how Internet Explorer wrongly renders the alt attribute.
Bookmarks