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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Nodes

A
  1. 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
  2. While the DOM representation often follows HTML, it may have extra nodes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly