HTML document DOM tree

DOM is the sort form of the Dynamic object Model. The HTML DOM defines a standard way for accessing and manipulating HTML documents. It is the object presentation of the HTML document. if you talk about the DOM tree then the html document can be parse in a tree called as DOM tree. In the DOM tree ‘document object is the root of the tree that contains all elements in your html document. observe the following:

Example 1

Suppose you have the following html document.

    <div> <p> Welcome</p></div>
    <div> <img src="welcome.png"/></div>

Would be converted to the following DOM tree:

dom tree example

More information about DOM