DOM structure
HTML tags, all in a DOM nodes, and these nodes of the overall structure of the DOM - node tree.
This section notes reference guide:
- Chinese: DOM nodes DOM node tree
- English: DOM Nodes DOM Node Tree
DOM structure and the structure of genealogical very similar.

This structure will be called the "tree node." For example, the following HTML:
<html> <head> <title> HTML DOM </ title> </ head> <body> <h1> DOM structure </ h1> <p> <a href="href" /> links </ a> </ p> </ body>
</ Html>
The DOM is structured as follows:

Node
- From the chart, we can see that the entire document is a document node.
- HMTL and every element is a label nodes.
- Label text is the text nodes.
- Attribute is the label attribute nodes.
- All nodes...
Node tree
The concept of tree nodes from the map at a glance, the above is the "roots". Node between father and son relationship, ancestors and descendants, siblings relations. These relations are very good from the map seen, is the direct connection between a father and son. The father is a brother and sister relationship...
- On one: DOM What can be done?
- DOM structure
- The following section: Visit DOM Node 1 - getElementById ()
