Java Reference
In-Depth Information
Figure 6.2. Our web page shown as a node tree
Note: This is a Simplified View
This is a slightly simplified diagram as the DOM also stores any whitespace
that is in the HTML document as text nodes.
The best way to follow along with the examples in this chapter is to use the console built
into the web browser (we discussed how to use this in Chapter 1 ) . The screenshot in Fig-
ure 6.3 shows the page with the console open.
Search WWH ::




Custom Search