This page tests the new input values of HTML5.
See also the mobile table.
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<input type="color">Test page |
No | No | No | No | Yes | |||||||||||||||||||
|
Shows a color wheel or similar interface. |
||||||||||||||||||||||||
<datalist>Test page |
No | Yes | Almost | No | No | Yes | ||||||||||||||||||
<input list="ppk" name="list" /> <datalist id="ppk"> <option label="ppk" value="ppk"></option> <option label="JavaScript" value="JavaScript"></option> </datalist> Shows the listed values as a suggestion/autocomplete box. Users can type in an alternative value, though. IE and Opera show the entire datalist when the user focuses on the input. Firefox only shows matching options when the user types in a letter. I side with IE and Opera here. See also the second test for old Safari/Chrome bugs. |
||||||||||||||||||||||||
<input type="date"><input type="datetime"><input type="time"><input type="month"><input type="week">Test page |
No | No | Minimal | No | Yes | |||||||||||||||||||
|
Shows a calendar popup in Opera. Safari shows a (bad) arrow-based interface but doesn’t validate the value. |
||||||||||||||||||||||||
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||
<input type="email">Test page |
No | Yes | Yes | No | Yes | Yes | ||||||||||||||||||
|
Value is automatically validated as an email address, and if it’s invalid form submission is halted.
|
||||||||||||||||||||||||
<input type="number">Test page |
No | Almost | No | Yes | Yes | Yes | ||||||||||||||||||
I wonder why no browser just returns an error message “This field should contain a number” and stops the form submission. Much easier in the long run than the current somewhat-weird behaviour. |
||||||||||||||||||||||||
<input type="range">Test page |
No | No | Almost | Almost | Yes | |||||||||||||||||||
|
Shows a slider. Opera makes the slider keyboard-accessible. Safari and Chrome don’t. |
||||||||||||||||||||||||
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||
<input type="tel">Test page |
Nothing special | |||||||||||||||||||||||
|
The spec says this type should do nothing special. Browsers assidiously comply. |
||||||||||||||||||||||||
<input type="url">Test page |
No | Yes | Yes | No | Yes | Yes | ||||||||||||||||||
|
Value is automatically validated as a URL, and if it’s invalid form submission is halted. Problem is: what is actually a URL? I’ve heard people say that |
||||||||||||||||||||||||
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
autofocusTest page |
No | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||
<input type="text" autofocus> The browser automatically focuses on this field when the page is loading. |
||||||||||||||||||||||||
multipleTest page |
No | Yes | Yes | Yes | Yes | |||||||||||||||||||
<input type="file" multiple> Allows users to upload multiple files at once. |
||||||||||||||||||||||||
patternTest page |
No | Yes | Yes | No | Yes | Yes | ||||||||||||||||||
<input pattern="[0-9]{4}[ ]?[A-Z]{2}" />
The value must conform to the regexp pattern, or submission is halted. |
||||||||||||||||||||||||
placeholderTest page |
No | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||
<input type="text" placeholder="Some text"> The placeholder text is shown as long as the field is unfocused and the user has not entered another value. |
||||||||||||||||||||||||
readonlyTest page |
Yes | Yes | Yes | Yes | Yes | Yes | ||||||||||||||||||
<input type="number" readonly> User cannot enter a value in the form field. |
||||||||||||||||||||||||
requiredTest page |
No | Yes | Yes | No | Yes | Yes | ||||||||||||||||||
<input type="text" required> Form submission is halted if a required field does not have a value. |
||||||||||||||||||||||||
stepTest page |
No | Yes | No | Yes | Yes | Incom |
||||||||||||||||||
<input type="number" step="3">
If you set
|
||||||||||||||||||||||||
| Input | IE 9 | IE 10 pr 2 | FF 10 Win | FF 9.0.1 Mac | Saf 5.1 Windows | Saf 5.1.2 Mac | Chrome 17 Win | Chrome 16 Mac | Opera 11.61 Win | Opera 11.61 Mac | ||||||||||||||