Parts of DH'TML
Added 28 Jul 2008
There are four parts to DHTML:
- Document Object Model (DOM)
- Scripts
- Cascading Style Sheets (CSS)
- XHTML
DOM
The DOM is what allows you to access any part of your Web page to change it
with DHTML. Every part of a Web page is specified by the DOM and using its
consistent naming conventions you can access them and change their properties.
Scripts
Scripts written in either JavaScript
or ActiveX are the two most
common scripting languages used to activate DHTML. You use a scripting language
to control the objects specified in the DOM.
Cascading Style Sheets
CSS is used in DHTML to control the look and feel of the Web page. Style sheets define
the colors and fonts of text, the background colors and images, and the placement of
objects on the page. Using scripting and the DOM, you can change the style of various
elements.
XHTML
XHTML or HTML 4.x is used to create the page itself and build the elements for the CSS
and the DOM to work on. There is nothing special about XHTML for DHTML - but having valid
XHTML is even more important, as there are more things working from it than just the browser.