Chapter 6. Network and location APIs


This chapter covers
  • Finding the user’s location and proximity to places and people of interest
  • Communicating directly with content from other servers
  • Having the server push information to the user rather than rely on pull
  • Building websites that work when there’s no network connectivity


The previous chapter discussed HTML5 APIs that worked directly with the content in the browser, but one of the key features of the web is that it’s not about standalone computers: it’s about a connected network. HTML5 has a number of APIs related to connectivity and communication, and you’ll learn about them in this chapter.

Finding yourself with the Geolocation API

Location-aware services and applications are a ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide now with O’Reilly online learning.

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