W3C home > Mailing lists > Public > www-validator@w3.org > May 2015

Re: Validates as HTML5 despite no <body> tag

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Tue, 5 May 2015 18:09:07 +0100
Message-ID: <CA+ri+VkhCu5L55wPDkQthboinzvLzFWDk33rbOUBE0YQUQS2SA@mail.gmail.com>
To: webmaster@succulent-plant.com
Cc: "www-validator@w3.org" <www-validator@w3.org>
The body element is not required in HTML5 under certain circumstances
refer to Tag omission in text/html:
http://www.w3.org/TR/html5/sections.html#the-body-element

note if you look at the DOM you will find the browser has added a body
element even though absent in the source code

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

On 5 May 2015 at 17:59, Richard J. Hodgkiss <webmaster@succulent-plant.com>
wrote:

>  Dear Sir,
>
> While trying to convert a web page to HTML5, I accidentally
> deleted the <body> tag:
> http://www.succulent-plant.com/families/dicotyledons2.html
>
> However, the validator repeatedly passes the page as correct HTML5.
>
> Regards,
>
> Richard Hodgkiss
>
>
> --
> "He who does not work shall not eat"
> Vladimir Ilyich Lenin 'The State and Revolution' 1917
>
>  ____________________________________________________________________
> |
> |  Dr. Richard J. Hodgkiss
> |  Email:  webmaster@succulent-plant.com
> |  Direct Dial: +44-(0)208-422-9942
> |
> |  Home Page
> |  http://www.succulent-plant.com/rjhodgkiss.html
> |
> |  The Succulent Plant Page:
> |  http://www.succulent-plant.com/
> |____________________________________________________________________
>
>
Received on Tuesday, 5 May 2015 17:10:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:13 UTC