HTML <input type="email">
Last Updated :
09 Dec, 2024
Improve
The HTML <input type="email"> is used to create an input field specifically for email addresses. It automatically validates the input to ensure it follows the correct email format. Adding the "multiple" attribute allows the user to input multiple email addresses, separated by commas.
Syntax
<input type="email">
Example: Demonstrates the <input type="email"> element within a form, allowing input of an email address and automatically validating its format.
<!DOCTYPE html>
<html>
<body>
<form>
<label for="email">Email Id:</label>
<input type="email" name="email"
value="user@geeksforgeeks.org">
</form>
</body>
</html>
Output
