Basic explanation of Dom exploration and dom Exploration
Understanding DOMDOM level
Note: The DOM level 0 standard does not actually exist, but it is only a reference point of the historical coordinate system. Specifically, it refers to the DHTML originally supported by IE4.0 and Netscape Navigator4.0.
Node Type
Note: 1. A node represents an attribute in an element. Because an attribute is actually attached to an element, an attribute node cannot be considered as a subnode of an element. In DOM, attribute nodes are not considered as part of a document tree, that is, an attribute node is considered as part of an element node that contains it and does not appear as a separate node in the document tree. 2. The document fragment node is used as a placeholder when the node is inserted. 3. IE does not support character constants (because IE has no Node object ).
DOM ready
Html tags must be parsed by the browser before they become DOM nodes.
Inheritance hierarchy and nested rules
A block element can contain an inline element or some block elements, but an inline element can only contain an inline element.
H1 ~ H6, p, and dt special labels can only contain inline elements.
Reference: MOOC-DOM exploration Basics