Forms

Collect input with labels, the right input types and validation.

Tie every input to a label. Tapping the label then focuses the field, and screen readers can announce it.

Edit the CSS
Preview
Input typeWhy use it
emailChecks the format and shows the @ keyboard on phones
telShows the number pad on phones
dateGives a date picker
numberAccepts numbers, with min and max
passwordHides what is typed

Browser checks such as required help the user, but anyone can bypass them. Always validate again on the server.

โ† Lists and tablesSemantic HTML โ†’