JavaScript Lives in a Web Page

All the code that you write for JavaScript goes into an HTML page. If you don’t know HTML yet, you should run out and get a good book on HTML. Lynda and William Weinman’s Creative HTML Design.2 (New Riders, 2001) is a good choice for designers and developers. However, assuming that you are familiar with HTML, you should be familiar with the whole concept of a tag language. HTML stands for Hypertext Markup Language. As a markup language, HTML essentially describes a web page as a static entity. A far more challenging endeavor is to program a web page that is dynamic, engaging, and intriguing. That’s where JavaScript comes into play.

The most dynamic elements in HTML, beside the link, are event-related attributes. ...

Get JavaScript Design 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.