What is DOM
DOM
stands for Document Object Model
.
DOM is a Web API that represents the structure of a web page as a tree of nodes.
- in memory data representation of the objects that comprise the structure and content of an HTML document on the web.
Represents a HTML structure as object, allowing developers to access and manipulate elements.
- scripting languages like Javascript to dynamically change content and style of a webpage.
DOM is NOT part of Javascript.
- However, Javascript needs DOM to work with the websites.