Forma saysThe browser ships dozens of JavaScript APIs — geolocation, storage, workers, and more — that turn a page into an app.
"HTML5" is shorthand for the modern web platform: not just tags, but a huge set of browser Web APIs reachable from JavaScript. Geolocation, local storage, drag-and-drop, notifications, the clipboard, background workers, real-time channels — all built in.
These are what let a web page rival a native app. Each is its own object on window or navigator; you feature-detect (if ('geolocation' in navigator)) before using one, since support and permissions vary.