HTML and CSS Reference
In-Depth Information
Figure 15.1 See http://www.w3.DOM for all the details.
15.2 How the DOM Works with Nodes
Just as we used the DOM to access forms, images, links, and events as objects, we can
use the DOM to access every element in an HTML document. The standard W3C DOM
currently consists of three parts: the DOM core, the XML DOM, and the HTML DOM
(see ). The DOM core speci-
fies a standard way to manipulate document structures, elements, and attributes; the
DOM XML and HTML just extends that functionality to XML and HTML, respectively.
In this chapter we discuss the HTML DOM.
Recall that the DOM represented an HTML document as a tree: With the DOM, every
HTML element can be defined as part of the tree, as shown in Figure 15.2.
Search WWH ::

Custom Search