Validating an email address in HTML5 by Brad Jones

By Brad Jones on May 17, 2012

Abstract

Validating an email address in HTML5 is very simple.

Description

Validating an email address in HTML5 is very simple. The work is all done for you with a new control.

Code Snippet

<body>
<form action="http://www.example.org/subsribe.php">
<p>Enter an email address: </p>
<input type="email" name="email" />
<input type="submit" value="Submit" />
</form>

</body>