-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecture27.html
38 lines (37 loc) · 1.71 KB
/
lecture27.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lecture 27| JavaScript DOM Navigation | Navigating to Parent to Child and other nodes</title>
</head>
<body>
*****************************Tutorial Start 🔥 ********************************
<h1>JavaScript DOM Navigation | Navigating to Parent to Child and other nodes</h1>
<div id="heading">
<h1 id="title">
We are learning JavaScript
</h1>
<h2>
We are going in a nice way
</h2>
<p id="content">
<span>
JavsScript is Popular Programming Language used for frontend and backend development 🚀
</span>
</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo, molestiae! Blanditiis, maiores.</p>
</div>
<h5>What is Parent Node?</h5>
<li>Parent Node Property to access the parent of the specified node in DOM tree, The parent node will return null for
the document node, since it does not have any parent.
</li>
<li>Suppose humko parents nikalna hai uss cheez ka jiska parent hai hi nhi too voo null return kardega.</li>
<li>Saare case me aisaa hi hota hai, agar parent, child, siblings nhi hai too voo return kar deta hai.</li>
<li>Top Most pe hamara document hota hai, and usko hum directly access kar sakte hai.</li>
<button onclick="lastChildBtn()">Click to change Last Child Font Size</button>
<script src="lecture27.js"></script>
***************************** Tutorial End 🚀 ********************************
</body>
</html>