Posted By

blantonious on 07/19/11


Tagged

html5


Versions (?)

HTML5 with regular expressions


 / Published in: HTML
 

  1. <form action="" method="post">
  2. <label for="username">Create a Username: </label>
  3. <input type="text"
  4. name="username"
  5. id="username"
  6. placeholder="4 <> 10"
  7. pattern="[A-Za-z]{4,10}"
  8. autofocus
  9. required>
  10. <button type="submit">Go </button>
  11. </form>

Report this snippet  

You need to login to post a comment.