DOM stands for Document Object Model. It is a programming interface for HTML and XML documents. It represents the structure of a web page/document as a hierarchical tree-like structure, where each node represents part of the page/document (such as an element, an attribute, text, etc.).
Using the DOM, JavaScript can create dynamic HTML – JavaScript can change all parts of an HTML document by creating, modifying, deleting, or rearranging the nodes in the DOM tree. For example, with JavaScript, you can change the content of an HTML element, change the CSS style of an HTML element, react to an event like a mouse click, etc.