How TO - Email Field


Learn how to create an email field in HTML.


Email Field

Enter your email:

You can use the input type="email" attribute to create an email field:

Example

<label for="email">Enter your email:</label>
<input type="email" id="email" name="email">
Try it Yourself »

The input type="email" defines a field for an e-mail address.

The input value is automatically validated to ensure it is a properly formatted e-mail address.

Tip: To Learn more about forms and input fields, read our HTML Forms Tutorial.


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.