<canvas>
HTML <canvas> Element Reference
The HTML <canvas> element provides a scriptable bitmap drawing surface with fallback content.
Categories
- Embedded content
Tag omission
Consult the HTML Living Standard for the precise tag-omission rules.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical canvas element example.
<canvas width="320" height="180">A chart showing monthly usage.</canvas>