HTML5 APIs

Powerful Tools for Modern Web Development

Try HTML5 Playground

HTML5 introduced a collection of powerful JavaScript APIs that enable rich, interactive web experiences. These APIs allow developers to access device hardware, manipulate media, store data locally, and create sophisticated applications that work across different platforms and devices.

Canvas API

The Canvas API provides a means for drawing graphics via JavaScript and the HTML <canvas> element. It can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing.

Learn More

Geolocation API

The Geolocation API allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is asked for permission to report location information.

Learn More

Web Storage API

The Web Storage API provides mechanisms by which browsers can store key/value pairs, in a much more intuitive fashion than using cookies. The two mechanisms are localStorage and sessionStorage.

Learn More

Web Workers API

Web Workers make it possible to run a script operation in a background thread separate from the main execution thread of a web application, allowing intensive tasks to run without blocking the UI.

Learn More

Drag and Drop API

HTML Drag and Drop interfaces enable applications to use drag-and-drop features in browsers. The user may select draggable elements with a mouse, drag those elements to a droppable element, and drop them by releasing the mouse button.

Learn More

History API

The History API provides access to the browser's session history through the history object. It exposes useful methods and properties that let you navigate back and forth through the user's history, and manipulate the contents of the history stack.

Learn More

Fetch API

The Fetch API provides a JavaScript interface for accessing and manipulating parts of the HTTP pipeline, such as requests and responses. It also provides a global fetch() method that provides an easy, logical way to fetch resources asynchronously across the network.

Learn More

Web Audio API

The Web Audio API provides a powerful and versatile system for controlling audio on the Web, allowing developers to choose audio sources, add effects to audio, create audio visualizations, apply spatial effects and much more.

Learn More

WebRTC API

WebRTC (Web Real-Time Communication) is a technology that enables Web applications and sites to capture and optionally stream audio and/or video media, as well as to exchange arbitrary data between browsers without requiring an intermediary.

Learn More

Official Resources