Core DOM – standard model for any structured document.
XML DOM – standard model for XML documents.
HTML DOM – standard model for HTML documents.
The XML DOM defines the objects and properties of all XML elements, and the methods (interface) to access them.The HTML DOM is:A standard object model for HTML.A standard programming interface for HTML.Platform- and language-independent.A W3C standard.The HTML DOM defines the objects and properties of all HTML elements, and the methods to access them.In other words: The HTML DOM is a standard for how to get, change, add, or delete HTML elements.In the DOM, everything in an HTML document is a node.The DOM says:The entire document is a document node.Every HTML element is an element node.The text in the HTML elements are text nodes.Every HTML attribute is an attribute node.Comments are comment nodes.A common error in DOM processing is to expect an element node to contain text.However, in the HTML DOM the value of the text node can be accessed by the innerHTML property.The HTML DOM views an HTML document as a node-tree.
All the nodes in the tree have relationships to each other.The HTML DOM views an HTML document as a tree-structure. The tree structure is called a node-tree.The nodes in the node tree have a hierarchical relationship to each other.This was an overview of HTML DOM.