Adding Scripts

Another means of bringing interactivity and interest to your pages is adding scripts to them. Typically, this refers to JavaScript or what is known as Dynamic HTML or DHTML, which is a combination of technologies, including HTML, CSS, JavaScript, and the Document Object Model. Combining these technologies gives you rich features such as drop-down menus and interactive games.

QUANTUM LEAP: THE DOCUMENT OBJECT MODEL

The Document Object Model, also referred to as the DOM, is the interface within browsers that enables you to attach scripting to specific elements. Part of the reason DHTML has been controversial and problematic is that browsers have implemented nonstandard DOMs, which have resulted in poor consistency. When you ...

Get Spring Into HTML and CSS 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.