22. Content

The phrase “content is king” has long been a truism for the Web. A Web page lives or dies based not on how it looks, but on what’s in it. If you don’t have great content, you don’t have a Web page. However, over the past several years, what Web designers have also come to discover is that it’s not enough to pour static content into the page. The content has to be able to act and react to the whims of the visitor at a moment’s notice.

Ajax is a technology that was developed primarily to allow Web designers to quickly change some or all of the content on a page without having to tediously reload the entire page.

This chapter explores some ways to quickly add and change content on the fly within a single HTML page.

Importing External ...

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.