-
Notifications
You must be signed in to change notification settings - Fork 26.9k
/
checkable-items.html
64 lines (61 loc) · 1.99 KB
/
checkable-items.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>
<meta charset="utf-8">
<title>Checkable items examples</title>
</head>
<body>
<form>
<fieldset>
<legend>Choose all the vegetables you like to eat</legend>
<ul>
<li>
<label for="carrots">Carrots</label>
<input type="checkbox" checked id="carrots" name="carrots" value="carrots">
</li>
<li>
<label for="peas">Peas</label>
<input type="checkbox" id="peas" name="peas" value="peas">
</li>
<li>
<label for="cabbage">Cabbage</label>
<input type="checkbox" id="cabbage" name="cabbage" value="cabbage">
</li>
<li>
<label for="cauli">Cauliflower</label>
<input type="checkbox" id="cauli" name="cauli" value="cauli">
</li>
<li>
<label for="broc">Broccoli</label>
<input type="checkbox" id="broc" name="broc" value="broc">
</li>
</ul>
</fieldset>
<fieldset>
<legend>What is your favorite meal?</legend>
<ul>
<li>
<label for="soup">Soup</label>
<input type="radio" checked id="soup" name="meal" value="soup">
</li>
<li>
<label for="curry">Curry</label>
<input type="radio" id="curry" name="meal" value="curry">
</li>
<li>
<label for="pizza">Pizza</label>
<input type="radio" id="pizza" name="meal" value="pizza">
</li>
<li>
<label for="tacos">Tacos</label>
<input type="radio" id="tacos" name="meal" value="tacos">
</li>
<li>
<label for="bolognaise">Bolognaise</label>
<input type="radio" id="bolognaise" name="meal" value="bolognaise">
</li>
</ul>
</fieldset>
</form>
</body>
</html>