Answers for "html form email pattern"

0

pattern for email id in html

<form action="example.php">
  <label for="email">Email:</label>
  <input type="email" id="email" name="email"
  pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$"
  title="Please Enter Valid Email Id">
  <input type="submit">
</form>
Posted by: Guest on August-11-2021
0

html input only letters

<!--To stop input from accepting numbers-->
<input onkeypress="return /[a-z]/i.test(event.key)" >
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language