We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c91ee commit 14697a5Copy full SHA for 14697a5
Lecture06/DOM/index.html
@@ -10,6 +10,9 @@
10
<body>
11
<p id="para">Hello </p>
12
<a id="link"></a>
13
+ <ul id="list">
14
+ <li>1</li>
15
+ </ul>
16
</body>
17
<script src="script.js"></script>
18
</html>
Lecture06/DOM/script.js
@@ -1,8 +1,13 @@
1
let para = document.getElementById('para');
2
let link = document.getElementById('link');
3
+let list = document.getElementById('list')
4
5
para.innerText += " Dhruv";
6
7
link.innerText = "Welcome to Coding Blocks"
8
link.setAttribute('href', 'https://codingblocks.com/')
9
+let item = document.createElement('li');
+item.innerHTML = 2;
+
+list.appendChild(item)
0 commit comments