-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCheckbox & Radio.html
49 lines (41 loc) · 1.54 KB
/
Checkbox & Radio.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="\server">
<p>Checkbox</p>
<input type="checkbox" name="age" id="age">
<label for="age">I am 18+</label>
<br>
<div>
<p>Radio~Grouped</p>
<input type="radio" name="Fruits" id="Apple" value="Apple">
<label for="Apple">Apple</label>
<input type="radio" name="Fruits" id="Banana" value="Banana">
<label for="Banana">Banana</label>
<input type="radio" name="Fruits" id="Mango" value="Mango">
<label for="Mango">Mango</label>
<input type="radio" name="Fruits" id="Grapes" value="Grapes">
<label for="Grapes">Grapes</label>
</div>
<br>
<p>Checkbox~Grouped</p>
<div>
Choose Your Subjects:
<input type="checkbox" name="Subjects" id="Maths" value="Maths">
<label for="Maths">Maths</label>
<input type="checkbox" name="Subjects" id="Physics" value="Phy">
<label for="Physics">Physics</label>
<input type="checkbox" name="Subjects" id="Chemistry" value="Chem">
<label for="Chemistry">Chemistry</label>
<input type="checkbox" name="Subjects" id="Biology" value="Bio">
<label for="Biology">Biology</label>
<button>Submit</button>
</div>
</form>
</body>
</html>