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

Re: Validates as HTML5 despite no <body> tag

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 06 May 2015 07:08:31 +0300
Message-ID: <554993BF.3010502@cs.tut.fi>
To: webmaster@succulent-plant.com
CC: "www-validator@w3.org" <www-validator@w3.org>
2015-05-05, 20:09, Steve Faulkner wrote:

> The body element is not required in HTML5 under certain circumstances

The body *element* is always there. The start and end *tags* <body> and 
</body> may (almost always) be omitted in HTML serialization of HTML5.

> refer to Tag omission in text/html:
> http://www.w3.org/TR/html5/sections.html#the-body-element

Indeed it is about *tag* omission, not about *element* omission. The 
detailed rules are somewhat complicated, but they mean that the tags may 
be omitted except in some rather special situations. (The omission may 
have impact on the construction of DOM nodes as regards to space 
characters, but this is normally irrelevant.)

Received on Wednesday, 6 May 2015 04:09:10 UTC

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