-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformsexercise.html
64 lines (55 loc) · 1.53 KB
/
formsexercise.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<title>Forms Exercise</title>
</head>
<body>
<h1>Register</h1>
<form>
<div>
<label for="firstname">First Name:</label>
<input id="firstname" type="text" name="firstname" placeholder="John" required>
<label for="lastname">Last Name:</label>
<input id="lastname" type="text" name="lastname" placeholder="Smith" required>
</div>
<div>
<label for="male">Male</label>
<input id="male" type="radio" name="gender" required>
<label for="female">Female</label>
<input id="female" type="radio" name="gender">
<label for="other">Other</label>
<input id="other" type="radio" name="gender">
</div>
<div>
<label for="email">Email:</label>
<input id="email" type="email" name="email" placeholder="your email" required>
<label for="password">Password:</label>
<input id="password" type="password" name="password" required maxlength="10" minlength="5">
</div>
<label for="birthday">Birthday:</label>
<select name="month">
<option>March</option>
<option>February</option>
<option>Yo mom</option>
<option selected>Month</option>
</select>
<select name="day">
<option>Day</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
<select name="year">
<option>Year</option>
<option>1995</option>
<option>1996</option>
<option>2420</option>
</select>
<div>
<label for="terms">I agree to the terms and conditions</label>
<input id="terms" type="checkbox" name="terms">
</div>
<button>Submit</button>
</form>
</body>
</html>