<!DOCTYPE html> <html> <body> <h1>The input pattern attribute</h1> <p>A form with an email field that that must be in the following order: [email protected] (characters followed by an @ sign, followed by more characters, and then a ".". After the "." sign, add at least 2 letters from a to z:</p> <form action="/action_page.php"> <label for="email">Email:</label> <input type="email" id="email" name="email" pattern="[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,}$"> <input type="submit"> </form> </body> </html>