Document Object Model (DOM) Flashcards
1
Q
Document Object Model (DOM)
A
Is a programming interface for the graphical representation of documents that are loaded into the browser. It provides a way to access and manipulate the structure, style, and content once loaded.
2
Q
Nodes
A
- The DOM represents the page in a Tree Structure
- The top node is called the root (or root node)
- Every node, except the root node, has 1 parent
- Each node can have any number of children
- Nodes with the same parent are called siblings - While the DOM representation often follows HTML, it may have extra nodes