In this post we are going to see HTML5 validation. Validation plays a major role in to securing a form in website. Now we learn about mobile number validation in HTML5 done by adding pattern attribute in the input field.
- Input text field for getting into the number.
- Max length to limit the characters entered in just ten.
- Required attribute is added if the number is mandatory.
- The title attribute is for describing the pattern of the users.