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  31

Using the Element-Specific Objects

The Document Object Model (DOM) defines a set of objects that represent the different types of HTML elements in a document. These objects can be treated as HTMLElement objects and, for the most part, that’s what you typically do in your scripts. But if you want to access some attribute or feature that is unique to an element, you can usually do so using one of these objects.

These objects are not much use. They generally define properties that correspond to attributes supported by an element, the value of which you can access through the features of the HTMLElement. There are a couple of exceptions—the form elements have some helpful methods for use with input validation, and the table elements ...

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