New in HTML5.

<canvas> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Every Way Possible To Embed Modern Media With HTML Code
What does <canvas> HTML Tag do?
The <canvas> element creates a rectangular pane of arbitrary size which can be used for drawing graphics, manipulating photos, and creating animations with JavaScript.
Display
block
Usage
structural

Drawing with JavaScript

The <canvas> element provides a panel of arbitrary size which can be used to display images and other content via JavaScript.

Adam is a technical writer who specializes in developer documentation and tutorials.

Browser Support for canvas

iefirefoxchromeedgesafariopera
9434513934