11. HTML5 JavaScript APIs

This chapter begins our exploration into HTML5 and its accompanying JavaScript APIs. It’s not uncommon to hear the term “HTML5” and immediately jump to the typical structure-based mind-set that has been associated with HTML thus far. Certainly no one would blame you for immediately thinking like that, especially now that you have knowledge of progressive enhancement, but a lot of features that shipped with HTML5 are not solely targeted at building an HTML document. A whole slew of JavaScript APIs were built with the intention of tying into the new elements, and even some that live independently from the DOM.

The official W3C specification for HTML5 has gone through so many revisions that it’s hard to keep up with which ...

Get Learning JavaScript: A Hands-On Guide to the Fundamentals of Modern JavaScript now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.