Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Race Registration Form</title>
- <style>
- body {
- font-family: sans-serif;
- }
- h2 {
- text-align: center;
- }
- form {
- width: 50%;
- margin: 0 auto;
- padding: 20px;
- border: 1px solid #ccc;
- }
- label {
- display: block;
- margin-bottom: 10px;
- }
- input, select {
- width: 100%;
- padding: 10px;
- border: 1px solid #ccc;
- }
- button {
- width: 100%;
- padding: 10px;
- margin-top: 20px;
- border: none;
- background-color: #000;
- color: #fff;
- cursor: pointer;
- }
- </style>
- </head>
- <body>
- <h2>Race Registration!</h2>
- <form action="/registration">
- <div>
- <label for="fname">First Name
- <input type="text" id="fname" name="fname" required>
- </label>
- <label for="lname">Last Name
- <input type="text" id="lname" name="lname" required>
- </label>
- </div>
- <p>Select a Race</p>
- <div>
- <input type="radio" id="fun_run" name="race" value="fun_run"> Fun Run 5K
- <input type="radio" id="hmarathon" name="race" value="hmarathon"> Half Marathon
- <input type="radio" id="fmarathon" name="race" value="fmarathon"> Full Marathon
- </div>
- <div>
- <label for="email"> Email
- <input type="email" name="email" required>
- </label>
- <label for="password"> Password
- <input type="password" name="password" required minlength="6" maxlength="12">
- </label>
- </div>
- <div>
- <label for="age_group"> Select Age Group
- <select name="age_group" id="age_group">
- <option value="young">Under-18</option>
- <option value="yadult">18-30</option>
- <option value="adult">30-50</option>
- <option value="senior">50+</option>
- </select>
- </label>
- </div>
- <button type="submit">Register!</button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement