-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday4.html
83 lines (66 loc) · 2.19 KB
/
day4.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
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Semantic HTML Page</title>
</head>
<body>
<h1>Select an Option:</h1>
<select style="font-size: 16px; padding: 5px;">
<option style="background-color: red; color: white;">Red</option>
<option style="background-color: green; color: white;">Green</option>
<option style="background-color: blue; color: white;">Blue</option>
<option style="background-color: yellow; color: black;">Yellow</option>
<option style="background-color: orange; color: white;">Orange</option>
</select>
<!---Learning to use Radio button-->
<h1>Choose your favorite programming language:</h1>
<input type="radio" id="java" name="language" value="Java">
<label for="java">Java</label><br>
<input type="radio" id="python" name="language" value="Python">
<label for="python">Python</label><br>
<input type="radio" id="javascript" name="language" value="JavaScript">
<label for="javascript">JavaScript</label><br>
<input type="radio" id="cpp" name="language" value="C++">
<label for="cpp">C++</label><br>
<!--radio button with emojis-->
<h1>Choose your favorite fruit:</h1>
<label for="fruit">
<input type="radio" id="apple" name="fruit" value="Apple">
Apple
</label><br>
<label for="orange">
<input type="radio" id="orange" name="fruit" value="Orange">
Orange
</label><br>
<label for="banana">
<input type="radio" id="banana" name="fruit" value="Banana">
Banana
</label><br>
<label for="grape">
<input type="radio" id="grape" name="fruit" value="Grape">
Grape
</label><br>
<!---checkbox using multiple options-->
<h1>Pick your favorite foods:</h1>
<label>
<input type="checkbox" name="food" value="Pizza">
Pizza
</label><br>
<label>
<input type="checkbox" name="food" value="Burger">
Burger
</label><br>
<label>
<input type="checkbox" name="food" value="Pasta">
Pasta
</label><br>
<label>
<input type="checkbox" name="food" value="Sushi">
Sushi
</label><br>
<input type="submit" value="Submit">
</form>
</body>
</html>