HTML: input type="email"

The email input is designed for an email address and gives browsers a useful validation hint and mobile keyboard.

What you will learn

Minimal example

<label for="email">Email address</label>
<input id="email" name="email" type="email"
       autocomplete="email" required>

The browser can reject values that do not look like an email address, and a phone may show an email-friendly keyboard. This is a usability aid, not proof that the address exists.

Common mistakes