I used input pattern in input type="text" its working
its working code
<input name="name" required pattern=".{4,}" title="Please Enter Correct Name" type="text" />
But when I used input pattern in input type="number" its not working
<input name="number" required type="number" pattern=".{9,20}" title="Please Enter Your Number at least 9 Digit" />
required="true"is wrong; it should be either justrequiredorrequired="required". See W3C.required="true". since all other browsers only need the required attribute to be present,required=trueis the most universal version