W3C home > Mailing lists > Public > www-validator@w3.org > March 2012

Re: Optional Html Tag

From: David Dorward <david@dorward.me.uk>
Date: Tue, 20 Mar 2012 16:33:15 +0000
Cc: <www-validator@w3.org>
Message-Id: <00396983-E2CC-48E4-81D0-56E22E21EB37@dorward.me.uk>
To: Ben Ellis <ben@collstream.co.uk>
On 20 Mar 2012, at 09:12, Ben Ellis wrote:
>                 I glanced at the specification and it states that it MUST contain an HTML tag, but the W3C validator and most browsers will successfully parse an HTML document without an HTML tag.

"An html element's start tag may be omitted if the first thing inside the html element is not a comment."

http://www.w3.org/TR/html5/syntax.html#optional-tags

-- 
David Dorward
http://dorward.me.uk
Received on Tuesday, 20 March 2012 16:33:54 GMT

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