-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (76 loc) · 2.58 KB
/
index.html
File metadata and controls
96 lines (76 loc) · 2.58 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event Handling</title>
<style>
.visibility {
display: none;
}
.addBackground {
background-color: rgb(245, 208, 164);
}
</style>
</head>
<body>
<!--** Task 1: start here **-->
<h1 id="mainHeading">Learning JavaScript From Chai Aur Code</h1>
<button id="changeBtn">Change Text</button><br>
<!--** Task 1: end here ****-->
<!--** Task 2: start here **-->
<img src="programmer.jpg" id="programmerImg" alt="" width="250px">
<br>
<!--** Task 2: end here ****-->
<!--** Task 3: start here **-->
<span>Task 3: Add a mouseover event listener to an element that changes its background color</span>
<br><br>
<!--** Task 3: end here ****-->
<!--** Task 5: start here **-->
<input type="text" name="" id="firstName" placeholder="Enter Your First Name">
<!--** Task 5: end here ****-->
<!--** Task 6: start here **-->
<input type="text" name="" id="lastName" placeholder="Enter Your Last Name">
<p id="display"></p>
<!--** Task 6: end here ****-->
<!--** Task 7: start here **-->
<form id="form">
<label for="firstName">First Name : </label>
<input type="text" name="firstName" id="firstName" placeholder="Enter Your First Name">
<br><br>
<label for="lastName">Last Name : </label>
<input type="text" name="lastName" id="lastName" placeholder="Enter Your Last Name">
<br><br>
<input type="submit" value="Submit">
</form>
<br>
<!--** Task 7: end here ****-->
<!--** Task 8: start here **-->
<label for="dropdown">Choose an option : </label>
<select name="" id="dropDown">
<option value="Apple">Apple</option>
<option value="Banana">Banana</option>
<option value="Mango">Mango</option>
<option value="Peach">Peach</option>
<option value="Grapes">Grapes</option>
</select>
<p id="displayValue"></p>
<!--** Task 8: end here ****-->
<!--** Task 9: start here **-->
<ul id="myList"> My List :
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<!--** Task 9: end here ****-->
<!--** Task 10: start here *-->
<ul id="listItem"> List Item :
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
<button id="addItemButton">Add Item</button>
<!--** Task 10: end here ***-->
<script src="task.js"></script>
</body>
</html>