Created
September 26, 2013 18:21
-
-
Save trumball/6718359 to your computer and use it in GitHub Desktop.
HTML5 allows, among other things, to validate emails using a regular expression pattern. Here is a ready to use input field with the regexp pattern to validate an email address.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" title="email" required pattern="[^@]+@[^@]+\.[a-zA-Z]{2,6}" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment