File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ The DOM tree (Document Object Model tree) is a hierarchical representation of th
16
16
- Each node represents a part of the document (like an element, text, or comment).
17
17
18
18
## Types of Nodes:
19
- - Element nodes: HTML elements like <body >, <h1 >, <p >.
20
- - Text nodes: The text inside those elements.
21
- - Attribute nodes: Attributes like class, id , etc. (usually accessed via element nodes).
22
- - Comment nodes: HTML comments like <!-- comment --> .
19
+ - ** Element nodes** : HTML elements like ` <body> ` , ` <h1> ` , ` <p> ` .
20
+ - ** Text nodes** : The text inside those elements.
21
+ - ** Attribute nodes** : Attributes like ` class ` , ` id ` , etc. (usually accessed via element nodes).
22
+ - ** Comment nodes** : HTML comments like ` <!-- comment --> ` .
23
23
24
24
## Why It Matters:
25
25
The DOM allows JavaScript to interact with and modify the page dynamically.
You can’t perform that action at this time.
0 commit comments