Reply to Re: required attribute "ALT" not specified .

Your name:

Reply:


Posted by Adrienne Boswell on 06/02/07 16:43

Gazing into my crystal ball I observed cwdjrxyz <spamtrap2@cwdjr.info>
writing in news:1180658489.074166.206810@k79g2000hse.googlegroups.com:

> Also if you write
> alt="", the W3C html validator is satisfied. This usually would not be
> a good idea, but it might help in some special case, although I can
> not think of a good reason for a blank alt text at the moment.
>

You leave the alt attribute blank if the image is for decoration. For
example:

<h1><img src="companylogo.png" alt="" height="100" width="200">Company
Name</h1>

or

<h1><a href="index.php" title="Return to Company Index Page"><img
src="companylogo.png" alt="" height="100" width="200">Company Name</a>
</h1>

vs

<p><img src="rolo.png" alt="Our cat Rolo sitting at the window"
height="100" width="100"> This picture of our Maine Coon, Rolo, was taken
when we first got her. Rolo loves to sit at the window and wait for the
birds, then she "sings" to them.</p>

Notice 1 and 2 have no alt text because they are for decoration. The
second example uses the title attribute to give the user a hint to the
destination. The third example DOES use have alt text because it is NOT
purely for decoration.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

[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

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