| Four
Components
dHTML requires four independent components to work: HTML,
Cascading Style Sheets, Scripting and the Document Object Model. The section provides a
brief description of each component.
HTML: HTML defines the structure of a Web page,
using such basic elements as headings, forms, tables, paragraphs and links. On December
18, 1997, HTML 4.0 attained "recommended" status at the W3C. Changes and
enhancements introduced in HTML 4.0 made dHTML possible.
Cascading Style Sheets (CSS): Similar to a
template in a word-processing document, a style sheet controls the formatting of HTML
elements. Like in traditional desktop publishing, one can use style sheet to specify page
margins, point sizes and leading. Cascading Style Sheets is a method to determine
precedence and to resolve conflicts when multiple styles are used.
Scripting: Scripting provides the mechanisms to
interpret user actions and produce client-side changes to a page. For example, scripts can
interpret mouse actions (such as the mouse passing over a specified area of a page through
the event model) and respond to the action by using a set of predefined instructions (such
as highlighting the text activated by the mouse action). Although DHTML can communicate
with several scripting languages, JavaScript is the de facto standard for creating
cross-browser dHTML pages.
Document Object Model (DOM): The DOM outlines Web
page content in a way that makes it possible for HTML elements, style sheets and scripting
languages to interact with each other. The W3C defines the DOM as "a platform- and
language-neutral interface that will allow programs and scripts to dynamically access and
update the content, structure, and style of documents. The document can be further
processed and the results of that processing can be incorporated back into the presented
stage."
|