W3C home > Mailing lists > Public > www-validator@w3.org > July 2011

Re: issue

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 08 Jul 2011 21:27:51 +0300
Message-ID: <4E174C27.4080002@cs.tut.fi>
To: www-validator@w3.org, horndash@googlemail.com
2011-07-08 1:33, Ulrich Horndash wrote:

> i dont really know if this is something. but i just realized that i
> got a "This document was successfully checked as HTML5!" on a
> html-file without the<html>  tag at the begining:

That's OK. The <html> tag is by no means necessary according to HTML5 
drafts. It's also optional in all other HTML versions except those based 
on XML (like XHTML 1.0).

This being said, it is normally good practice to include an <html> tag, 
but mainly because it's an appropriate place for specifying the overall 
language used in the document content, e.g. <html lang=de>.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 8 July 2011 18:28:22 GMT

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