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 ...
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.
Read now
Unlock full access