Click anywhere to see the DOM tree of the element being clicked.

The whole page is a BODY element:

DIV and SPAN elements:

This is a DIV element.
SPAN within DIV.
This is a SPAN element.
This is a SPAN element.

A TABLE element:

     
     
     

 

An IMG element:

Even the scrollbar is an element.  Click on the scrollbar to see.  Use down/up arrow to scroll the page.

A link (<A HREF>) element:

You can see more about DOM Tree on this tutorial: Printing, Traversing DOM Tree

Back

(C) F. Permadi