Problem Statement
What is the Document Object Model (DOM)
Explanation
The DOM is a tree-like representation of the structure of a web page.
Each HTML element becomes a node in the tree.
JavaScript can interact with the DOM to read or modify content dynamically for example, changing text, colors, or layout without reloading the page.
Practice Sets
This question appears in the following practice sets: