HTML 5 · Forms

Choose an input type

The right type gives mobile users the right keyboard and built-in validation.

<input type="email">
<input type="tel">
<input type="url">
<input type="number" min="0" max="10">
<input type="date">
<input type="password" autocomplete="current-password">

Official HTML 5 documentation

More forms commands

All forms commands · HTML 5 cheatsheet

Was this page helpful?