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">