Thursday, February 19, 2015

DOM

HTML document is organized into a DOM (Document Object Model) tree.  This allows the HTML document to be manipulated programmatically.

A DOM tree consists of the following node types:

document node - the root of the tree
element nodes - HTML elements such as , , etc</p> <p> text nodes - the textual content of an element, for example the text between the <p> tags of <p> text node</p> </p> <p> attribute node - non-displayable attributes</p> <p> <br></p> <p> Both text nodes and attribute nodes are end or leaf nodes which no children.  They are also accessed using different methods in JavaScript.</p> <p> <br></p> <p> <br></p> <p> <br></p> <p> <br></p>

No comments: