Chapter 6. Device Apis

In the previous chapters, I’ve discussed some of the many APIs that have been introduced as part of the HTML5 process, such as microdata and Touch Events. But there is a further range of APIs that, although not part of the spec, are certainly related; and these APIs offer something extremely attractive to developers in the multi-screen world: access to the device itself.

In this chapter, we take a look at some device APIs—from the new location and spatial features in portable devices to file and storage options across most modern browsers. Obviously not all APIs are going to be available on every device—knowing the ...

Get The Modern Web 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.