New HTML5 input attributes

Posted in Articles

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

There are new attributes for the input tag that was not previously in HTML4.  For example, in HTML 5 you can have …

<input type=”text” name=”postaladdress” required=”off” >

where autocomplete is an new attribute in HTML5.

The attributes of the input tag that are new in HTML5 are …

autocomplete
autofocus
required

form
formaction
formmethod
formtarget
formenctype
formnovalidate

height
width

max
min

placeholder
list
pattern
step

See also new HTML5 input type values and new HTML5 tags and discontinued HTML5 elements.

For reference for the attributes for the input tag including the new ones for HTML5, you can see w3schools.com