My HTML 5 Favourites
With the W3C publishing the latest HTML 5 working draft and supporting differences from HTML 4 document, I thought I’d list some of my favourite additions and changes:
New Elements
figureto associate a caption with some content, such as an image.audioandvideocan be used for multimedia content.canvascan be used for rendering dynamic graphics such as graphs.datagridfor interactive tabular data.
- The
inputelement now has some new types:datetime,datetime-local,date,month,week,time,number,range,emailandurl.
New Attributes
- The
aandareaelements have a new attribute calledpingthat specifies a list of URIs which have to be pinged when the hyperlink is followed. - The new
autofocusattribute can be specified to focus a form control during page load. - The new
formattribute allows for controls to be associated with multiple forms. - The new
requiredattribute on form controls indicates that the user has to fill in a value in order to submit the form.
- The
inputelement has several new attributes to specify constraints:autocomplete,min,max,patternandstep.
These are just the specific bits I’m most interested in, take a look at the full HTML 5 differences from HTML 4 document for the full list of new features/changes, in more detail.
Of course, none of this matters for now, as it’s going to be a long time before we get to use any HTML 5 goodness in real applications and sites, but it’s good to see things moving forward.
