DOM Tree Study Notes
The DOM (Document Object Model) is a tree structure that the browser creates by parsing an HTML document. Each HTML element is a node in the tree. When a webpage loads, the browser:
- Parses the HTML document
- Creates the DOM tree structure
- Provides JavaScript with an interface for reading and writing