A typical email address structure is [email protected]
As you can never trust your website user so you have to check the email id when user submit the form.
To solve this, HTML5 came with a news input type email.
The syntax is as basic as a text input you just have to use
Some advantage of using this new Email input type is:
- This input field will be automatically validated when submitted.
- On mobile device like iPhone or on Android will display a keyboard with the @ symbol provided on the primary screen
Syntax for this Input Type:
<input type="email" name="usremail" />