how to add an pattern in html to an input code example
Example: html input only letters
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >