A DOM tree consists of the following node types:
document node - the root of the tree
element nodes - HTML elements such as , ,
text nodes - the textual content of an element, for example the text between the
tags of
text node
attribute node - non-displayable attributes
Both text nodes and attribute nodes are end or leaf nodes which no children. They are also accessed using different methods in JavaScript.
No comments:
Post a Comment