Document Object Model
In the DOM model, the content of the web document is represented in a tree-like structure consisting of nodes. By knowing how these nodes are organized, it becomes possible to change any part of the document dynamically. Consider the following HTML markup.
This markup creates two nodes in the DOM tree: an element node and a text node. Element nodes can have ...