Chapter 14HTML5 APIs

HTML5 is the latest iteration of the Hypertext Markup Language used to create web pages. This version goes beyond the actual markup language, however, and brings together a number of related technologies such as CSS and JavaScript. We’ve already seen in Chapter 8 some of the new form elements as well as the validation API that has been introduced. In this chapter, we’ll be looking at some of the other APIs that have been made available in HTML5.

In this chapter, we’ll cover the following topics:

  • the development of HTML5 and the JavaScript APIs

  • the data- attribute

  • HTML5 APIs―local storage, geolocation, web workers, and multimedia

  • drawing shapes with canvas

  • shims and polyfills―how to make the most of HTML5 APIs, even when ...

Get JavaScript: Novice to Ninja 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.