HTML5 with regular expressions
Copy this code and paste it in your HTML
<form action="" method="post"> name="username"
id="username"
placeholder="4 <> 10"
pattern="[A-Za-z]{4,10}"
autofocus
required>
Report this snippet
Comments
Subscribe to comments