Open In App

HTML <input type=”email”>

Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <input type=”email”> is used to define a field for email address. automatically validating input for proper email format. Adding “multiple” allows multiple addresses.

Syntax:

<input type="email"> 

Example: In this example we demonstrate the <input type=”email”> element within a form, allowing input of an email address and automatically validating its format.

HTML
<!DOCTYPE html>
<html>

<head>
  <title>
    HTML input type email
  </title>
</head>

<body style="text-align:center;">
  <form>
      Email:
      <input 
          type="email" 
          value="manaschhabra499@gmailo.com">
  </form>
</body>

</html>

Output:

HTML-input-type-email-example

HTML input type email example

Supported Browsers

The browsers supported by <input type=”email”> are listed below:


Last Updated : 12 Mar, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads