Interface

In object-oriented programming, an interface defines a set of methods and properties that an object must implement. Unlike a class, an interface does not contain any implementation details; it only describes the structure that implementing objects must follow.

In the context of Web APIs, an interface is a type that describes the methods, properties, and events that a web API object exposes. These interfaces are defined in Web IDL (Interface Definition Language) and are implemented by browsers.