11. Understanding DHTML

As powerful as Cascading Style Sheets are, they aren’t really dynamic per se. They give you control of how a document looks when it’s first put on the screen, but what about after that?

Web pages created with CSS can have their style properties changed on the fly (that is, dynamically) through a scripting language such as JavaScript.

In addition, dynamic HTML (DHTML) lets users directly interact with Web pages, so you can create far more sophisticated user interfaces than with simple HTML. For example, the Web site for Panic uses DHMTL, so users can quickly download the company’s software (Figure 11.1). Clicking the application icon displays more information about the product, but dragging and dropping the same icon downloads ...

Get CSS, DHTML, and Ajax: Visual QuickStart Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.