DOM

The tree of objects a browser builds from a web page, which scripts read and change to update what is on screen.

In more detail

DOM stands for Document Object Model. Every HTML element becomes a node in the tree, with parent, child and sibling relationships. React, CSS selectors and screen readers all work from this tree.

Examples

In the browser: DOM stands for Document Object Model. Every element, piece of text and comment in the HTML becomes a node in the tree, with the document at the root. Changing the DOM, for example adding a node, can make the browser recalculate styles, layout and paint.
Web-first assertions poll the DOM until the expected change appears.
React batches its DOM changes and applies only the differences during the commit phase.

Related terms

Taught in

References