Advertisement
makispaiktis

Codecademy - Validation Forms - Password

Aug 16th, 2019 (edited)
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en" dir="ltr">
  3.   <head>
  4.     <meta charset="utf-8">
  5.     <title>Sign Up Page</title>
  6.     <link rel="stylesheet" href="style.css" type="text/css">
  7.     <link href="https://fonts.googleapis.com/css?family=Fjalla+One" rel="stylesheet">
  8.   </head>
  9.   <body>
  10.     <section class="overlay">
  11.             <h1>Sign Up</h1>
  12.       <p>Create an account:</p>
  13.       <form action="submission.html" method="GET">
  14.         <label for="username">Username:</label>
  15.         <br>
  16.                 <!--Add the pattern attribute to the input below-->
  17.                 <input id="username" name="username" type="text" required pattern="[a-zA-Z0-9]+" minlength="3" maxlength="15">
  18.         <br>
  19.         <label for="pw">Password:</label>
  20.         <br>
  21.                 <input id="pw" name="pw" type="password" required minlength="8" maxlength="15">
  22.         <br>
  23.         <input type="submit" value="Submit">
  24.       </form>
  25.     </section>
  26.   </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement