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

Re: Optional Html Tag

From: Ben Ellis <ben.ellis@softweyr.co.uk>
Date: Thu, 22 Mar 2012 13:26:38 +0000
Message-ID: <CAJoncmCJrD5YTFLPhBS85eKagP3d5ZnVweYUou5LWe1WwkUxgw@mail.gmail.com>
To: "www-validator@w3.org" <www-validator@w3.org>
Thanks for clarifying that for me!

On Tue, Mar 20, 2012 at 5:11 PM, Jukka K. Korpela <jkorpela@cs.tut.fi>wrote:

> 2012-03-20 18:33, David Dorward wrote:
>
>  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<http://www.w3.org/TR/html5/syntax.html#optional-tags>
>>
>
> HTML5 is work in progress, and any HTML5 validation is experimental (and
> does not necessarily reflect the most recent HTML5 draft).
>
> According to approved specifications, the tags <html> and </html> are
> always optional in HTML, except in XHTML, where they are always required.
>
> Yucca
>
>
>
>
>
Received on Saturday, 24 March 2012 00:18:43 GMT

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