Chapter 7. Scripts & Objects

IT JUST SITS THERE. It doesn’t do anything. Well, that’s kind of the point of HTML and CSS—it’s just a way of structuring and presenting largely textual content. The whiz-bang-pop is the job of other languages and file types. Close to home you’ve got JavaScript, which allows you to dynamically manipulate the parts of an HTML page and then you’ve got your completely alien objects like videos and Flash files. They may not be a part of HTML or CSS, but they still rely on HTML to get them to work in a web page.

JavaScript and the DOM

JavaScript is a commonly used and widely supported scripting language that can be used to add interactive behaviors such as rollovers, form validation, and even switching between different ...

Get HTML Dog: The Best-Practice Guide to XHTML & 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.