Re: Validates as HTML5 despite no <body> tag

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.)

Yucca

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