Type |
Description |
Format |
Example |
color |
Used to define the color of the elements in an HTML form. It takes a hexadecimal input. |
|
|
datetime-local |
Used to define an element for date and time in the HTML form with opening a date picker or numeric wheels for the month, day, and year, when used in supported browsers. |
|
|
email |
Used to define a text field for email which has all the predefined validations done for checking an email. |
|
|
date |
Used to define a date picker for the HTML form. |
|
|
number |
Used to input numbers in the HTML form by displaying a spinner and adding default validation when used in supported browsers. |
|
|
range |
Used to define a range in the HTML form. |
|
|
search |
Used to define single-line text fields for entering search strings. |
|
|
tel |
Used to define a telephone entering field within an HTML form. |
|
|
time |
Used to define a field for entering time in HTML form |
|
|
url |
Used to define a text field for entering a url in the HTML form with all its validations being performed automatically.
|
|
|
week |
Used to define a text field for entering the week-year number and a week number with no time zone. |
|
|
datetime |
Used to define a text field for entering a date and time (hour, minute, second, and fraction of a second) based on the UTC time zone. |
|
|