pattern email code example
Example 1: pattern email validation
<input type="email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" />
Example 2: html textbox pattern mobile number
<input type="text" name="Phone Number" pattern="[7-9]{1}[0-9]{9}"
title="Phone number with 7-9 and remaing 9 digit with 0-9">
Example 3: name validation html
<input type="text" pattern="[a-zA-Z'-'\s]*">