HTML5 Input Type Email

September 23, 2012

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 type="email".

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:

[php]<input type="email" name="usremail" />[/php]

Related Posts

Let Us Work Together

Let us Plan Your Website or Digital Strategy Together

Start My Proposal Now →