HTML <input type="email">

Last Updated : 25 May, 2026

The HTML <input type="email"> element is used to create an email input field in a form. It allows users to enter email addresses and performs basic email format validation automatically.

  • Used to accept email addresses from users.
  • Created using <input type="email"> inside a form.
  • Supports attributes like placeholder, required, multiple, and maxlength.

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.

HTML
<!DOCTYPE html>
<html>

<body>
    <form>
        <label for="email">Email Id:</label>
        <input type="email" name="email" 
            value="user@geeksforgeeks.org">
    </form>
</body>

</html>
Comment