Basic explanation of Dom exploration and dom Exploration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.