What is DOM?

The DOM, or Document Object Model, is the structure a browser builds from a web page so that scripts can read and change it.

Every tag becomes a node in a tree. JavaScript can find a node, change its text or style, or add and remove nodes, which is how pages update without reloading.

Browser developer tools show the DOM in the Elements panel, which is the quickest way to see what a page really contains after scripts have run.

← All terms

↑ ↓ navigateEnter openEsc close