HTML5 TUTORIALS - HTML5 Web Forms 2.0
HTML5 Web Forms 2.0
ADVERTISEMENTS
Type | Description |
---|---|
text | A free-form text field, nominally free of line breaks. |
password | A free-form text field for sensitive information, nominally free of line breaks. |
checkbox | A set of zero or more values from a predefined list. |
radio | An enumerated value. |
submit | A free form of button initiates form submission. |
file | An arbitrary file with a MIME type and optionally a file name. |
image | A coordinate, relative to a particular image's size, with the extra semantic that it must be the last value selected and initiates form submission. |
hidden | An arbitrary string that is not normally displayed to the user. |
select | An enumerated value, much like the radio type. |
textarea | A free-form text field, nominally with no line break restrictions. |
button | A free form of button which can initiates any event related to button. |
ADVERTISEMENTS
|
ADVERTISEMENTS
Type | Description |
---|---|
datetime | A date and time (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with the time zone set to UTC. |
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. |
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@example.com 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. |
|
|
|