Skip to Content
The Definitive Guide to HTML5
book

The Definitive Guide to HTML5

by Adam Freeman
December 2011
Beginner to intermediate
1080 pages
23h 42m
English
Apress
Content preview from The Definitive Guide to HTML5

C H A P T E R  25

The DOM in Context

In this part of the book, you will explore the Document Object Model (the DOM). You can achieve some complex effects using the elements and CSS properties I have shown you so far, but if you want to get total control of your HTML, you need to use JavaScript. The DOM is the connection between JavaScript and the contents of your HTML document. Using the DOM, you can add, remove, and manipulate elements. You can respond to user interaction using events and you can take complete control of CSS.

From this point on, you are at the programming end of HTML5. Until now, you've created content using element and CSS declarations, but it is time to put on your programmer hat and start using JavaScript. Chapter 5 gives ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5 Unleashed

HTML5 Unleashed

Simon Sarris
HTML5 Solutions: Essential Techniques for HTML5 Developers

HTML5 Solutions: Essential Techniques for HTML5 Developers

Marco Casario, Peter Elst, Charles Brown, Nathalie Wormser, Cyril Hanquez
HTML5 in Action

HTML5 in Action

Greg Wanish, Rob Crowther, Joe Lennon, Charles Brindle

Publisher Resources

ISBN: 9781430239604Purchase book