Reply to Re: alt vs title in explorer 7 & firefox

Your name:

Reply:


Posted by J.O. Aho on 07/08/07 07:05

GreatArtist wrote:
> I have internet explorer 7 and firefox 2.
> I set my web page to be XHTML 1.0 transitional.
> I put the alt attribute in my image tags but they were only displayed
> in firefox, not IE7.
> So I changed all the alt attributes to title instead. That works in
> both IE7 and Firefox.
> But now when I use the W3C xhtml validator, it tells me I should have
> alt for all the image tags.
> Should I include both title and alt in each image tag?
> Why doesn't alt work in IE7? Didn't alt work in previous versions of
> IE?

Yes, you should have both.
As far as I can recall, the alt is meant to be displayed when the image is
missing, while the title is shown when you hover with the mouse pointer over
the image.

Alt has worked as title in earlier versions of MSIE, there can be two reasons
why alt don't generate a "pop-up", the most likely is that MS has a bug in the
code (which is quite common), or they wanted to follow the standard more closely.


--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация