Chapter 7

HTML5 DOM and APIs

Webpages as user interfaces can become even more responsive, dynamic, and functional if we give JavaScript maximum control over all aspects of a webpage. An important aspect of the new HTML5 standard is the establishment of APIs giving JavaScript much more control over many aspects of a webpage. More important APIs are listed here; some of these APIs are still under development.

•  The HTML5 DOM API—for access, traversal, and manipulation of the DOM tree, manipulation of HTML element objects and other node objects on the DOM tree.

•  The Canvas API—for drawing graphics, manipulating images, making transformations and compositions, performing animations as well as responding to user interface events.

•  The Drag-and-Drop ...

Get Dynamic Web Programming and HTML5 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.