Skip to content

Commit a90a648

Browse files
committed
DOM Notes
1 parent b463e0a commit a90a648

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Notes/DOM.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ The DOM tree (Document Object Model tree) is a hierarchical representation of th
1616
- Each node represents a part of the document (like an element, text, or comment).
1717

1818
## 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 -->`.
2323

2424
## Why It Matters:
2525
The DOM allows JavaScript to interact with and modify the page dynamically.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy