Canvas

This HTML element is used with either the canvas scripting API or the WebGL API to render shapes and colors.

Attributes

  • height
  • width

Usage notes

You should provide fallback content inside this element for accessibility and fallback reasons.

The OffscreenCanvas API can be useful parallelizing work using web workers.