input valid 10 digit and number format only example
Example: contact text box accept only till 10 digit in html
<input type="text" maxlength="10" pattern="\d{10}" title="Please enter exactly 10 digits" />
<input type="text" maxlength="10" pattern="\d{10}" title="Please enter exactly 10 digits" />