Element node types nodetype = 1 nodename = capital element tag name or parent can be said document element
Which may be a child node Element, Text, comment
Access element tag name can be nodename can be said tagname
1. Html element id title lang (dir = ltr rarely used languages direction) className
2. Obtain characteristics getAttribue () setAttribute () removeAttribute ()
3.attribute property
4. Create an element createElement
The child element node
Text node type
nodeType = Text 3 nodename = #text nodeValue = node contains
No children
parentNode is an Element
1. Create a text node document.createTextNode ()
2. The text node normalization normalize ()
3. The split text node splitText
Comment type
nodeType = 8 nodeValue equal parentNode content may be annotated document, Element