-
Notifications
You must be signed in to change notification settings - Fork 0
/
07_forms_input.html
77 lines (77 loc) · 2.35 KB
/
07_forms_input.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
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Forms & Input</title>
</head>
<body>
<form>
<!-- Text -->
<div>
<label for="name">Name</label><br>
<input type="text" name="name" id="name" value="John Doe">
</div>
<!-- Email -->
<div>
<label for="email">Email</label><br>
<input type="email" name="email" id="email" placeholder="Enter an email">
</div>
<!-- Textarea -->
<div>
<label for="message">Message</label><br>
<textarea name="message" id="message" cols="50" rows="5"></textarea>
</div>
<!-- Select -->
<div>
<label for="sex">Sex</label>
<select name="sex" id="sex">
<option value="male">Male</option>
<option value="female" selected>Female</option>
<option value="other">Other</option>
</select>
</div>
<!-- Number -->
<div>
<label for="age">Age</label><br>
<input type="number" name="age" id="age">
</div>
<!-- Date -->
<div>
<label for="birthdate">Birthdate</label>
<br>
<input type="date" name="birthdate" id="birthdate">
</div>
<!-- Radio -->
<div>
<fieldset>
<legend>Membership</legend>
<input type="radio" name="membership" value="simple" id="simple">
<label for="simple">Simple</label>
<input type="radio" name="membership" value="standard" id="standard" checked>
<label for="standard">Standard</label>
<input type="radio" name="membership" value="super" id="super">
<label for="super">Super</label>
</fieldset>
</div>
<!-- Checkbox -->
<div>
<fieldset>
<legend>I Like...</legend>
<input type="checkbox" name="likes" value="bike" id="bike">
<label for="bike">Bike</label>
<input type="checkbox" name="likes" value="car" id="car" checked>
<label for="car">Car</label>
<input type="checkbox" name="likes" value="boat" id="boat">
<label for="boat">Boat</label>
</fieldset>
</div>
<!-- Input submit -->
<input type="submit" value="Submit">
<!-- Button submit -->
<!-- <button type="submit">Submit</button> -->
<button type="reset">Reset</button>
</form>
</body>
</html>