HTML Input Types
The type attribute changes how an input behaves and what the browser validates.
| Type | Description |
|---|---|
text | Single-line text |
email | Email address (validated) |
password | Hidden text entry |
number | Numeric input with up/down arrows |
date | Date picker |
checkbox | True/false toggle |
radio | One choice from a group |
file | File upload |
range | Slider |
color | Colour picker |
hidden | Invisible data field |
submit | Submit button |