Thursday 29 December 2011

HTML5 Input Type - email

The email type  contain an e-mail address, which is used for input fields.
When the form is submitted, the value of the email field is automatically validated .

Syntax:
E-mail: <input type="email" name="user_email" />

Example:

<!DOCTYPE html>
<html>
<body>

<form action="demo_form.asp" method="get">
E-mail: <input type="email" name="user_email" /><br />
<input type="submit" />
</form>

</body>
</html>

No comments:

Post a Comment