Advertisement
Guest User

Untitled

a guest
Apr 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <!-- another assignment -->
  5. <title>Forms Exercise </title>
  6. </head>
  7. <body>
  8.  
  9. <h1>Register</h1>
  10. <form>
  11. <label for="fname">Username:</label>
  12. <input type="text" placeholder="John" id="fname" name="FirstName" required>
  13. <label for="lname">Password:</label>
  14. <input type="text" placeholder="Smith" id="lname" name="LastName" required>
  15.  
  16. <div>
  17. <label for="Male">Male</label>
  18. <input type="radio" name="genderChoice" id="Male" value="MALE">
  19. <label for="Female">Female</label>
  20. <input type="radio" name="genderChoice" id="Female" value="FEMALE">
  21. <label for="Other">Other</label>
  22. <input type="radio" name="genderChoice" id="Other" value="OTHER">
  23. </div>
  24.  
  25. <div>
  26. <label for="email">Username:</label>
  27. <input type="email" placeholder="your email" id="email" required>
  28. <label for="password">Password:</label>
  29. <input type="password" id="password" pattern=".{5,10}" required title="5 to 10 characters required">
  30. </div>
  31.  
  32. <div>
  33. <label> Birthday:
  34.  
  35. <select name ="Month">
  36. <option>Month</option>
  37. <option>Jan</option>
  38. <option>Feb</option>
  39. <option>March</option>
  40. </select>
  41.  
  42. <select name ="Day">
  43. <option>Day</option>
  44. <option>2</option>
  45. <option>3</option>
  46. <option>4</option>
  47. </select>
  48.  
  49. <select name ="Year">
  50. <option>Year</option>
  51. <option>2001</option>
  52. <option>1999</option>
  53. <option>1998</option>
  54. </select>
  55. </label>
  56. </div>
  57.  
  58. <div>
  59. <label for="tc">I agree to the terms and condition</label>
  60. <input type="checkbox" name="agreed" id="tc">
  61. </div>
  62.  
  63. <button>Submit</button>
  64. </form>
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement