JavaScript

DOM

Definition

Document Object Model — a tree-structured representation of an HTML document that allows JavaScript to read and manipulate page content, structure, and styles. Every HTML element becomes a node in the DOM tree.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms