Tutorials Point, Simply Easy Learning
datetime-local
A date and time (year, month, day, hour, minute, second, fractions of a
second) encoded according to ISO 8601, with no time zone information.
date
A date (year, month, day) encoded according to ISO 8601.
month
A date consisting of a year and a month encoded according to ISO
8601.
week
A date consisting of a year and a week number encoded according to
ISO 8601.
time
A time (hour, minute, seconds, fractional seconds) encoded according
to ISO 8601.
number
This accepts only numerical value. The step attribute specifies the
precision, defaulting to 1.
range
The range type is used for input fields that should contain a value from
a range of numbers.
email
This accepts only email value. This type is used for input fields that
should contain an e-mail address. If you try to submit a simple text, it
forces to enter only email address in [email protected] format.
url
This accepts only URL value. This type is used for input fields that
should contain a URL address. If you try to submit a simple text, it
forces to enter only URL address either in http://www.example.com
format or in http://example.com format.
The