-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcheckbox.html
70 lines (45 loc) · 1.34 KB
/
checkbox.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Checkboxes</title>
<meta name="robots" content="noindex, nofollow">
<style type="text/css">
body {
font-family: arial, sans-serif;
line-height: 2;
padding: 1% 5%;
}
</style>
</head>
<body>
<h1>Checkboxes</h1>
<form>
<fieldset>
<legend>1: I like the following beers (explicit label)</legend>
<input type="checkbox" name="beer[]" id="heineken" value="heineken" />
<label for="heineken">Heineken</label><br/>
<input type="checkbox" name="beer[]" id="amstel" value="amstel"/>
<label for="amstel">Amstel</label><br/>
<input type="checkbox" name="beer[]" id="not" value="not"/>
<label for="not">I hate beer</label><br/>
</fieldset>
<fieldset>
<legend>2: I like the following movies (implicit label)</legend>
<label>
<input type="checkbox" name="movies[]" value="Sound" /> Sound of Music
</label>
<br/>
<label>
<input type="checkbox" name="movies[]" value="Zombie" /> Zombie Apocalypse
</label>
<br/>
<label>
<input type="checkbox" name="movies[]" value="Spongebob" /> Spongebob the movie
</label>
<br/>
</fieldset>
</form>
<a href="index.html">Back to overview page</a>
</body>
</html>