W3C home > Mailing lists > Public > public-html-comments@w3.org > June 2010

Re: Minimum requirements to class as valid HTML document.

From: Michael(tm) Smith <mike@w3.org>
Date: Tue, 15 Jun 2010 19:03:35 +0900
To: Nathan <nathan@webr3.org>
Cc: public-html-comments@w3.org
Message-ID: <20100615100334.GC49302@sideshowbarker>
Nathan <nathan@webr3.org>, 2010-06-05 03:07 +0100:

> Is the following a valid HTML document?
> <!DOCTYPE html>
> <title>Example</title>
> <h1>Document</h1>
> <p>With some text, and this example stops here.

Yeah, it's valid if it's served as text/html (or intended to be
processed as text/html)

> In addition could somebody confirm if the only 'required' element of
> an HTML document is the <title>; as in is the following the absolute
> minimum needed to be classed as a valid HTML document:
> <!DOCTYPE html>
> <title>Tiny</title>

That's not the absolute minimum, because the contents of the
<title> element can be empty. But yeah that is valid -- again, as
long as it is served/intended as text/html

Note that this is just a personal response from me, not an
official response from the HTML WG.


Michael(tm) Smith
Received on Tuesday, 15 June 2010 10:03:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:04:03 UTC