HTML5 APIs
Modern browsers are more than document viewers; they are application platforms. HTML5 APIs provide standardized interfaces to hardware and system capabilities.
Geolocation
The navigator.geolocation object is used to locate the user's position. It respects privacy by prompting the user for permission before sharing location data.
Web Storage
Before HTML5, application data had to be stored in cookies, included in every server request. localStorage and sessionStorage provide a more secure way to store large amounts of data locally.
Canvas
The <canvas> element is a container for graphics. You must use JavaScript to actually draw the graphics. It is commonly used for game graphics, data visualization, and image editing.
View Full Transcript+
This transcript covers the window.navigator object methods, the distinction between synchronous and asynchronous calls in Geolocation, the synchronous nature of LocalStorage, and the context retrieval method for the HTML5 Canvas element.
