Re: [www-validator] <none>

Thank you for this information. I wasn't aware the body tag was optional or
the html tag for that matter. I am sure there is some good reason for this,
but it seems inconsistent.

On Thu, Sep 21, 2017 at 8:33 AM, David Dorward <david@dorward.me.uk> wrote:

> 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:53:24 UTC