HTML5: Audio, Video, Canvas, Geolocation, Storage
With the web API, you can
- add, change, remove page elements
- move, resize, transform elements
- manipulate forms and user input (validation)
- make server requests (AJAX)
- store data (cookies, HTML5 LocalStorage)
An API is an Application Programming INTERFACE.
The most basic scripting interface developed at W3C is the DOM, the Document Object Model which allows programs and scripts to dynamically access and update the content, structure and style of documents.
Modifications of the content using the DOM by the user and by scripts trigger events that developers can make use of to build rich user interfaces.
- XMLHttpRequest makes it possible to load additional content from the Web without loading a new document, a core component of AJAX,
- the Geolocation API makes the user’s current location available to browser-based applications,
- several APIs make the integration of Web applications with the local file system and storage seamless.
Simply put, an interface is a type of object, that you’re able to use in your web app or site. Node, Element, Document, Navigator, Storage, Event are all interface objects.
All objects implementing the same interface can be treated similarly. For example
Nodeis an interface that is implemented by multiple other objects, including
Element. All objects implementing the
Nodeinterface can be treated similarly. The term node therefore (in the DOM context) means any object that implements the
Nodeinterface. Most commonly that is an element object representing a HTML element.