html5 giving validation for email code example
Example 1: how to validate mail adress css
<form>
<input pattern="/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/" required />
<br />
<input type="submit" value="Submit Now!">
</form>
Example 2: how to validate mail adress css
<form>
<input type="email" required /> <br />
<input type="submit" value="Submit Now!">
</form>