The DOM of JavaScript

Source: Internet
Author: User

What is DOM?

The Document Object model, or DOM, is the standard programming interface recommended by the Organization for the processing of extensible flag languages. On a Web page, objects that organize pages (or documents) are organized in a tree structure that represents the standard model for objects in a document called the DOM.

The HTML DOM defines the objects and properties of all HTML elements, as well as how to access them.

In other words, the HTML DOM is the standard for how to get, modify, add, or delete HTML elements.

  

Inheritance and node tree of two CSS

An HTML page can be thought of as a collection of nodes, which can contain different tags in an HTML document, and each component in an HTML document is a node. A node tree can present an HTML document as a node-set and a connection between them. At each node tree, the topmost node is called the root. Each node, outside of Root, has a parent node. A node can have an infinite number of child nodes, and the leaf is a child-free node, and the sibling node refers to the node that owns the same parent. As a node tree:

  

CSS inheritance refers to the child tags that inherit all the style styles of the parent tag, and can be modified on the basis of the style of the parent tag style, creating a new style, and the child markup style style does not affect the parent tag at all.

  

  

The DOM of JavaScript

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.