The full name of Dom is Document Object Model, which is essentially a document platform. Dom is an interface specification promoted by the W3C Dom working group. It is an application independent of the XML data access, parsing, or updating mechanism. In layman's terms, Dom is a hierarchical model that allows developers to operate on XML documents. With a clear hierarchical model, you can obtain flexible data operations.
On a webpage, objects that comprise pages (or documents) are organized in a tree structure. Javascript treats every item in the document tree as an object, which can be manipulated using JavaScript. The standard model used to represent objects in a document is called Dom.
Each object in the tree is also called a node of the tree ). If a node contains an HTML tag, it is called an element node. Otherwise, it is called a text node. An element node can contain a text node.