Overview
The DOM stand for Javascript Document Object Model - is a programming interface for web documents that acts as a live, hierarchical bridge between HTML code and JavaScript execution.
Every element, attribute, and piece of text in an HTML document is translated into aNode within a parent-child hierarchy:
1 Document Node: The root gateway to the entire web page (document).
2. Element Nodes: Standard HTML tags (e.g, the body, div and p tag . )
3. Attribute Nodes: Inline properties of tags (e.g., href, src, class)
Text Nodes: The actual text strings nested inside HTML elements .
DOM (Document Object Model) is a programming interface that lets JavaScript access, change, and interact with the elements and content of an HTML webpage.