Skip to content

Commit 0a2732b

Browse files
committed
DOM Notes
1 parent a90a648 commit 0a2732b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Notes/DOM.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# DOM (Document Object Model)
22

3-
The Document Object Model (DOM) is the data representation of the objects that comprise the structure and content of a document on the web.
4-
5-
It represents the page so that programs can change the document structure, style, and content.
6-
7-
The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
3+
The Document Object Model (DOM) is the data representation of the objects that comprise the structure and content of a document on the web. It represents the page so that programs can change the document structure, style, and content. The DOM represents the document as nodes and objects; that way, programming languages can interact with the page.
84

95
# DOM Tree
106

@@ -23,6 +19,7 @@ The DOM tree (Document Object Model tree) is a hierarchical representation of th
2319

2420
## Why It Matters:
2521
The DOM allows JavaScript to interact with and modify the page dynamically.
22+
2623
For example: document.getElementById("myId") gets a node, and you can change its content or style.
2724

2825
## DOM Tree Example

0 commit comments

Comments
 (0)