You are here: Re: alt vs title in explorer 7 & firefox « HTML « IT news, forums, messages
Re: alt vs title in explorer 7 & firefox

Posted by Jukka K. Korpela on 07/08/07 07:23

Scripsit GreatArtist:

> I set my web page to be XHTML 1.0 transitional.

Thanks for the bogosity alert. (You didn't read the group much before
posting. It is frequently explained in this group why XHTML is almost always
useless as the delivery format of web pages and why using the transitional
version is even more pointless.)

> I put the alt attribute in my image tags but they were only displayed
> in firefox, not IE7.

You don't know what the alt attribute means. Read a book on HTML, or at
least a primer. Then perhaps the great monography on alt attributes:
http://www.cs.tut.fi/~jkorpela/html/alt.html

> So I changed all the alt attributes to title instead. That works in
> both IE7 and Firefox.

No, it's just your illusion.

> But now when I use the W3C xhtml validator, it tells me I should have
> alt for all the image tags.

Of course. Except that it says "shall", not "should".

> Should I include both title and alt in each image tag?

You should stop working on web pages before you understand the basics,
including the alt attribute.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this 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

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