tryit_yourcode See Results <!DOCTYPE html> <html> <body> <h2>The pattern Attribute</h2> <form action="/sample_page.php"> Password: <input type="text" name="Password" pattern="[A-Za-z]{6}" title="6 letter Password"> <input type="submit"> </form> </body> </html>