HTML5 has some interesting new additions. But let’s recognize the elephant in the room: HTML5 isn’t a final spec, nor will it be for quite some time. That said, there are many pieces that are stable, and can be used right now.
For a little background, HTML5 comes in two serializations: XML and HTML. The XML serialization of HTML5 is served as application/xhtml+xml, while the HTML serialization is served as text/html. Due to the added complications of serving application/xhtml+xml, we’re going to use the HTML serialization for all our demos here.
So here’s one of my favorite parts about starting a new HTML5 document: I can do it from memory.
<pre><!DOCTYPE html>
<html>
<head>
<title>New Document</title>