New types for input tag in HTML 5

The HTML 5 input element’s type attribute now has the following new values:

Type Description
color Color selector, which could be represented by a wheel or swatch picker
date Selector for calendar date
datetime-local Date and time display, with no setting or indication for time zones
datetime Full date and time display, including a time zone.
email Input type should be an email.
month Selector for a month within a given year
number A field containing a numeric value only
range Numeric selector within a range of values, typically visualized as a slider
search Term to supply to a search engine. For example, the search bar atop a browser.
tel Input type should be telephone number.
time Time indicator and selector, with no time zone information
url Input type should be URL type.
week Selector for a week within a given year

Leave a comment

Your email address will not be published.