HTML5 in contact number issue

Contact number is taking more than 10 digits, should it show error after 10 numbers?

Hi, share your code to know how and where you are getting problem.
You can get default validation error of HTML5 while submitting of a form, not before that.

But to set input limit you can do like below
if you are using maxlength attribute
it is only for type=“tel”, type=“password”, type=“text” etc.
required will pop up error if the field condition does not match

<!-- it prevents more than 10 characters input -->
<input type="tel" minlength="10" maxlength="10" required/> 
<input type="text" maxlength="10" required/> 
<input type="password" maxlength="10" required/>
<textarea maxlength="10" ></textarea>