CREATE AN EMAIL INPUT TYPE

You can use the email input type to restrict input fields to values formatted like email addresses only. Supported web browsers will reject values that are not formatted with an @ sign and a specific domain name with a TLD (top-level domain), such as user@domain.com — or to be precise, values that do not follow RFC5322. Note this feature makes no effort to verify that the user owns the email address provided or whether it is even real.

<input type='email' name='field' value='email' multiple>

The type='email' attribute value activates the email-specific input options of the user’s web browser. Additional input element attributes, such as name and value, have the same meaning and functionality common in HTML forms. ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.