The basic knowledge of model node in DOM basic teaching model

Source: Internet
Author: User

It has no parents, it is called the root node

1. Element node

It can be said that the entire DOM model is made up of element nodes

For example, the text paragraph element "<p>", the name "<ul>" of the unordered list, the element node contains other elements,

2. Text node

For example, the textual content in the text "Heading 1",<li> in

3. Attribute node

As elements in a page, there are more or less attributes, such as the title attribute for almost all elements. Because attributes are all placed in the label, the attribute nodes are always included in the element node

Do the small partners understand the DOM model node deeply, I hope you like it.

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.