Minimum HTML 5 Document

Dustin Diaz recently posted about skinny doctypes, which basically boiled down to:

<!doctype html>

Folks in the comments pointed out that this is the doctype that HTML 5 uses. I’d only been glancing at HTML 5 from time to time, but this got me to look at it a little bit closer. I went to the W3C Validator to see what the minimum HTML 5 document looked like. Here’s the smallest document that still validated:

<!doctype html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>

Now this is what I’m talking about, simple and to the point.

The validator does give one warning for this document, but it’s simply to mention that HTML 5 conformance is still experimental.

Related posts:

  1. WordPress Theme Authors, Don’t Forget The wp_head() Function

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Comments »

 
 

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>