4,815 questions
If you are interested in extending the JavaScript validation, then maybe do it like this:
if( tel1.length < 10 || tel1.length > 20 )
{
. . . show the error . . .
}
Also check the HTML documentation for modern elements like <input type="tel"...>
.