mobile number not accept in input field code 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" />