W3C home > Mailing lists > Public > www-validator@w3.org > September 2017

Re: [www-validator] <none>

From: David Dorward <david@dorward.me.uk>
Date: Thu, 21 Sep 2017 13:33:41 +0100
To: "Mark D. Hamill" <markdhamill@gmail.com>
Cc: "Philip TAYLOR" <P.Taylor@rhul.ac.uk>, www-validator@w3.org
Message-ID: <49CF06BA-53D4-4772-A41B-A0D4E8F7B958@dorward.me.uk>
On 21 Sep 2017, at 13:17, Mark D. Hamill wrote:

> This was a student submitting homework. I have them validate their 
> pages.
> I don't see <body> tags or a closing </html> tag. Those should be 
> flagged.
> See attached screenshot from your validator.

Ho hum. Earlier I said:

> Did you miss the parts of the HTML specification that state some tags 
> may be omitted?

And you did:

Tag omission in text/html:

A body element's start tag may be omitted if the element is empty, or if 
the first thing inside the body element is not a space character or a 
comment, except if the first thing inside the body element is a meta, 
link, script, style, or template element.

   — https://www.w3.org/TR/html5/sections.html#the-body-element

Tag omission in text/html:

An html element's start tag can be omitted if the first thing inside the 
html element is not a comment.

An html element's end tag can be omitted if the html element is not 
immediately followed by a comment.

   — https://www.w3.org/TR/html5/semantics.html#the-html-element
Received on Thursday, 21 September 2017 12:34:08 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 21 September 2017 12:34:16 UTC