The Document Object Model (DOM) is the structured representation of a web page that a browser uses to hold its content and structure in memory. JavaScript can modify the DOM to add or remove content.
The is the tree-like structure a browser uses to represent a page internally. Every element, such as a heading, paragraph or image, is a node in this tree. JavaScript accesses the DOM and can change it dynamically.
For , an important distinction matters:
The page source shows the originally delivered by the server.
The rendered DOM shows the state after JavaScript has run, as displayed by the developer tools (DevTools).
These two can differ. If content exists only in the rendered DOM but not in the raw source, it may be invisible to simple crawlers and many . When auditing, you should therefore compare the source with the rendered DOM rather than relying on the browser view alone.