HTML · Forms and controls

input types

Choosing the correct type gives free validation, mobile keyboards and better autofill.

Syntax
type="email | password | number | date | checkbox"

Example

Try it

More in this group

button datalist fieldset form input label legend meter

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course