O'Reilly logo

HTML Dog: The Best-Practice Guide to XHTML & CSS by Patrick Griffiths

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required