-
Notifications
You must be signed in to change notification settings - Fork 0
/
editable-checkboxes.html
58 lines (58 loc) · 1.09 KB
/
editable-checkboxes.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Editable Checkboxes</title>
</head>
<body>
<h1>Editable Checkboxes</h1>
<div contenteditable="true" aria-label="Editor">
<h2>Standalone Checkboxes</h2>
<h3>Label For</h3>
<label for="cb1">Item 1</label>
<input id="cb1" type="checkbox">
<h3>Wrapping Label</h3>
<label>
Item 1
<input id="cb2" type="checkbox">
</label>
<h2>Checkboxes in List Items</h2>
<h3>Label For</h3>
<ul>
<li>
<label for="cb3">Item 1</label>
<input id="cb3" type="checkbox">
</li>
<li>
<label for="cb4">Item 2</label>
<input id="cb4" type="checkbox">
</li>
<li>
<label for="cb5">Item 3</label>
<input id="cb5" type="checkbox">
</li>
</ul>
<h3>Wrapping Label</h3>
<ul>
<li>
<label>
Item 1
<input type="checkbox">
</label>
</li>
<li>
<label>
Item 2
<input type="checkbox">
</label>
</li>
<li>
<label>
Item 3
<input type="checkbox">
</label>
</li>
</ul>
</div>
</body>
</html>