This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The following document passes HTML5 strict in the validator, even when the "full document" checkbox is checked for direct input mode: <!DOCTYPE html> <head> <title>Invalid</title> </head> <body> <p>Hello world</p> </body> Per my reading of <http://www.w3.org/TR/html5/syntax.html#writing>, this should at least throw a warning, if not fail validation entirely, due to the lack of an enclosing html element: > Documents must consist of the following parts, in the given order: > > ... > > 5. The root element, in the form of an html element. Thanks!
The start tag and end tag for the html element can be omitted. See http://www.w3.org/TR/html5/semantics.html#the-html-element The start tags and end tags for the body and head elements can be omitted also, so the following is also a valid full document: <!DOCTYPE html> <title>Invalid</title> <p>Hello world</p>