Logo
  Sunday, May 20, 2012
Sign-In  |  Sign-Up  |  Contact Us  | Bookmark |  RSS Feed

HTML5 Tutorial FeedBurner

HTML5 Email Input Type Tag  
HTML5 introduced several new input types. On the important types is email input type.

<input type=“email”>

HTML5 Email Input type creates a form element on the Web page that allows for native validation of email addresses. It checks for @ sign as well as proper dots placed in the email address provided by the user. However, email input type behaves differently depending on the browser you are using to render your form. Validation is different in Opera for instance. Opera browser only validates for the presence of the @ sign and does not check for dots in the email. On the other hand, Chrome, FireFox check for both @ sign and dot. In addition, Opera displays email input box slightly different by appending an email icon in front of it. This does not happen if you view same input tag in FireFox or Chrome. HTML5 email input tag or form element has several attributes which you can use to modify behavior of the email input tag.
  • name – name of the email input field
  • disable – makes your email input field disabled
  • type – identifies type of the email input field
  • form – form container
  • autocomplete – captures value stored by the user
  • autofocus – sets focus to the email input field upon load
  • maxlength – specifies maximum length user can enter into email input field
  • list – identifies if element is disabled
  • pattern – uses regular expression for value checking
  • readonly – sets control to read only field
  • required – sets email input field to me mandatory
  • size – size of the email input field
  • placeholder – text displayed in the email field by default
  • multiple – allows you to provide multiple emails
  • value – contains email(s)
There are several browsers and mobile devices that recognize this element and optimized to act properly after email input element is loaded as part of the form.
Print HTML5 Email Input Type Tag Bookmark HTML5 Email Input Type Tag

Related Articles  
HTML5 Custom Tags
The HTML5 allows you to customize an input tag. The HTML input tag can be modified to allow custom validation in a more ...
HTML5 dataTransfer object
The HTML5 dataTransfer object is part of drag and drop feature in HTML5. It is the main object that holds information ...
HTML5 Forms Browser Support
HTML5 forms allow creation of highly interactive web pages. Moreover, HTML5 provide for faster and efficient form data ...
Adding Placeholder Text in HTML5 Input Fields
HTML5 has new way of adding this text via input attribute called "placeholder". You can assign text to this placeholder ...
HTML5 Form Input Types
HTML5 forms have new set of input types in addition to well known and widely used input types such as text, checkbox, ...
HTML5 Drag and Drop Key Concepts
HTML5 Drag and Drop is modeled after desktop based application. As a result, HTML5 drag and drop is easy to implement ...
More