Code Safari

Chapter 135·Beginner

The DOM: How the Browser Models a Page

01 / 06

The core idea

The DOM is a tree of objects.

The browser parses your HTML into a tree, one node per element, nested exactly like your tags. That tree — the DOM — is what actually gets rendered.

The DOM: How the Browser Models a Page | Code Safari