Java Reference
In-Depth Information
content can be made bold, italic, or colorized. The elements don't store the content; they just
hold the attributes. Therefore, one Document can be rendered differently from different Element sets.
The following is an example of a basic HTML document with a title and a bulleted list
for content.
<html>
<head>
<title>Cards</title>
</head>
<body>
<h1>Suits:</h1>
<ul>
<li>Clubs</li>
<li>Diamonds</li>
<li>Hearts</li>
<li>Spades</li>
</ul>
</body>
</html>
Looking at the structure of the elements in this HTML document, you get a hierarchy as
shown in Figure 15-8.
Figure 15-8. Examining the element makeup of a document
 
Search WWH ::




Custom Search