HTML | <input type=”email”>
The HTML <input type=”email”> is used to define a field for email address. The input email id is automatically validated to check the format of the email id is correct or not.
Syntax
<input type="email">
Example:
<!DOCTYPE html> < html > < head > < title > HTML input type email </ title > </ head > < body style = "text-align:center;" > < h1 style = "color:green;" > GeeksForGeeks </ h1 > < h2 >HTML < input type = "email" ></ h2 > < form > Email: < input type = "email" value = "manaschhabra499@gmailo.com" > </ form > </ body > </ html > |
Output:
Supported Browsers: The browsers supported by <input type=”email”> are listed below:
- Google Chrome 5.0
- Internet Explorer 10.0
- Firefox 4.0
- Safari 5.0
- Opera 10.1