TheDotProduct

Web-tech nerd stuff

HTML5 input elements and their data formats

As a follow-up to my article on js5hf – an unobtrusive javascript method for converting text type inputs to HTML5 input types, I wanted to put together a simple example of the new HTML5 inputs to demonstrate the formats in which they output data. So…you can see my example of HTML5 input element data formats which is semi-interactive – you can enter data as you wish and view the output by submitting the form.

A summary of the output formats is (any constant elements e.g. the “W” in week inputs and the “T” in datetime inputs are bolded):

You can see a more complete specification of HTML5 input elements on w3.org.

Created: Wed, 31 Mar 2010 13:00:00 GMT
Last modified: Wed, 31 Mar 2010 13:00:00 GMT