document object model - tree-structures, in-memory representation of what is displayed on a web page
-
https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model
-
HTML is converted to a DOM object - javascript can modify the DOM to make web pages interactive
-
can query for specific elements in the document, like
document.querySelectorAll("p") -
DOM is a web API independent of programming languages - enables document representation to be available from a single, consistent API