I am new to HTML5 ...
Here I had a problem with the email template attribute ...
1) if I give an input like user@gmail.com... in the email field.
2) it does not take a value and shows "Pattern does not match" ..
Help me fix this ....
Here is an HTML snippet
<form name='f1' method="POST" action="" > <div id="fp"> <span style="margin-left:-50px">Email:</span> <span><input class="input" type="email" name="Email" placeholder="Enter mailID" required pattern="^[A-Z0-9._%+-] +@ [A-Z0-9.-]+\.[AZ]{2,4}$" ></span><br> <input type="submit" name="submit" value="submit"> </div> </form>
Any suggestions are acceptable ....
source share