Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <!-- another assignment -->
- <title>Forms Exercise </title>
- </head>
- <body>
- <h1>Register</h1>
- <form>
- <label for="fname">Username:</label>
- <input type="text" placeholder="John" id="fname" name="FirstName" required>
- <label for="lname">Password:</label>
- <input type="text" placeholder="Smith" id="lname" name="LastName" required>
- <div>
- <label for="Male">Male</label>
- <input type="radio" name="genderChoice" id="Male" value="MALE">
- <label for="Female">Female</label>
- <input type="radio" name="genderChoice" id="Female" value="FEMALE">
- <label for="Other">Other</label>
- <input type="radio" name="genderChoice" id="Other" value="OTHER">
- </div>
- <div>
- <label for="email">Username:</label>
- <input type="email" placeholder="your email" id="email" required>
- <label for="password">Password:</label>
- <input type="password" id="password" pattern=".{5,10}" required title="5 to 10 characters required">
- </div>
- <div>
- <label> Birthday:
- <select name ="Month">
- <option>Month</option>
- <option>Jan</option>
- <option>Feb</option>
- <option>March</option>
- </select>
- <select name ="Day">
- <option>Day</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- </select>
- <select name ="Year">
- <option>Year</option>
- <option>2001</option>
- <option>1999</option>
- <option>1998</option>
- </select>
- </label>
- </div>
- <div>
- <label for="tc">I agree to the terms and condition</label>
- <input type="checkbox" name="agreed" id="tc">
- </div>
- <button>Submit</button>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement