Re: lang attribut

At 09:57 25-06-99 , Joël Brogniart wrote:
>The HTML 4.0 doc says that the "HTML" tag could have a "lang" 
>attribut (see 
><http://www.w3.org/TR/REC-html40/struct/global.html#edef-HTML> and 
><http://www.w3.org/TR/REC-html40/struct/dirlang.html#adef-lang>). But 
>the validator at <http://validator.w3.org/> gives an error for an 
>html page where the lang attribut is set for the "HTML" tag.
>
>Sample page

Your sample looked good to me, and a review of the HTML 4.0 specification
agreed with it. So I ran it through the W3C validator (cut and paste from
your message, nothing fancy) and got what I expected, 

	Congratulations, this document validates as HTML 4.0! 

It is true that if you also check WebLint, it will whine about the LANG
attribute. Such is the nature of WebLint, it is an informed (but not always
enlightened) opinion on its view of good practice. WebLint for example will
warn you about empty containers... (such as empty anchors <A NAME=FOO></A>)
since they can cause grief in certain broken browsers, and in other cases
are both useless and likely suggest a nearby coding error. A validator will
not give such a warning, since however useless they are they are, they
still are 'valid'.

Safe computing,  /Harold
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Harold A. Driscoll                       mailto:harold@driscoll.chi.il.us
#include <std/disclaimer>      http://homepage.interaccess.com/~driscoll/

Received on Friday, 25 June 1999 12:56:20 UTC