Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re:

From: Jasper Bryant-Greene <jasper@bryant-greene.name>
Date: Thu, 18 Aug 2005 05:16:16 +0000
Message-ID: <43041990.6000408@bryant-greene.name>
To: www-html@w3.org




Dustin wrote:
> On 8/17/05, *David Woolley* <david@djwhome.demon.co.uk 
> <mailto:david@djwhome.demon.co.uk>> wrote:
> 
> 
>      >        <img src="enter.gif">
> 
>     As well as being off topic, that's not valid HTML!
> 
> 
> How is that not valid HTML? If you mean the @alt attribute or the 
> @longdesc attribute is missing, it isn't valid due to accessibility 
> reasons. Accessibility is mandatory in some countries, but in others, it 
> is not. Even if you don't have one or both of those attributes, it is 
> still considered standard-compliant code, depending on your location in 
> the world and your personal coding preferences. If you omit them, most 
> user-agents will not stop rendering the page (and/or the image). The 
> image will still be rendered usually, regardless of whether the tag's 
> contents consist of the image's path.

The @alt attribute is required as per the relevant specification [1]. 
That's why it's not valid HTML. From the specification:

alt         %Text;         #REQUIRED -- short description --


Jasper

[1] http://www.w3.org/TR/html401/struct/objects.html#h-13.2 
Received on Thursday, 18 August 2005 21:29:47 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.