Input Types
| Type= |
Description |
| Text |
Single-line text input field |
| Password |
Password field; hides inputted text with dots |
| Submit |
Defines a button for submitting form data |
| Reset |
Defines a button for resetting all form values to default |
| Radio |
Allows a user to select one of given choices |
| checkbox |
Allows a user to select zero or multiple of given choices |
| Button |
Defines a button; if used with onclick="alert(' ')"
displays text on user's screen |
| Date |
Used for fields that contain a date |
| Datetime-local |
Specifies a date and time input field with no time zone |
| Email |
Used for fields that should contain an email address |
| File |
Defines a file-select field and a "browse" buton for file uploads |
| Number |
Defines a numeric input field |
| Month, week |
Allows user to select month and year or week and year |
| Search |
Used for search fields |
| Tel |
Used for input fields that should contain a telephone number |
| Time |
Allows user to select a time |
| Url |
Used for input fields that should contain a url address |