docs.rodeo

MDN Web Docs mirror

HTMLCanvasElement

{{APIRef("Canvas API")}} 

The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of {{HtmlElement("canvas")}}  elements. The HTMLCanvasElement interface also inherits the properties and methods of the {{domxref("HTMLElement")}}  interface.

{{InheritanceDiagram}} 

Instance properties

Inherits properties from its parent, {{domxref("HTMLElement")}} .

Instance methods

Inherits methods from its parent, {{domxref("HTMLElement")}} .

Events

Inherits events from its parent, {{domxref("HTMLElement")}} .

Listen to these events using {{DOMxRef("EventTarget.addEventListener", "addEventListener()")}}  or by assigning an event listener to the oneventname property of this interface.

Specifications

{{Specifications}} 

Browser compatibility

{{Compat}} 

See also

In this article

View on MDN