W3C home > Mailing lists > Public > www-validator@w3.org > June 1999

Re: lang attribut

From: Harold A. Driscoll <harold@driscoll.chi.il.us>
Date: Fri, 25 Jun 1999 11:52:19 -0500
Message-Id: <199906251656.LAA26276@neuman.interaccess.com>
To: JoŽl Brogniart <Joel.Brogniart@univ-lyon2.fr>
Cc: www-validator@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:52 GMT