Next: JavaScript
Up: Programming on the Client
Previous: Some More Definitions:Dynamic HTML
DOM:
-
The key element of DHTML is probably the document object model.
- DOM makes everything on the page into an object
- elements can be manipulated by programmed scripts.
DOM of an HTML Document
The DOM model of an HTML document is a hierarchical structure which might
reasonably be represented as a tree.
- Does NOT imply that DOM
software must manipulate the document in a hierarchical manner,
- it is
simply a representation.
The relationship between some HTML code and the DOM
<html>
<head>
<title>TITLE OF PAGE</title>
</head>
<body>
<p>Some text...</p>
<ul>
<li>First
<li>Second
</ul>
</body>
</html>
Figure: DOM Example
The DOM models, but does not implement:
- the objects that comprise a document
- the semantics, behaviour and attributes of those objects
- the relationships between those objects
Dave Marshall
9/28/2001