<form action="/action_page.php" enctype="multipart/form-data" > <label>Name</label> <input type="text" name="name" pattern="[A-Za-z0-9]{3}" ><br><br> <input type="submit"> </form>