canvas

The canvas element represents a resolution-dependent bitmap canvas, which can be used for dynamically rendering images such as game graphics, graphs, or other images.

HTML5

Attributes

<canvas attribute-name="attribute-value"></canvas>
Name Value Description
height non-negative integer Height of the canvas in CSS pixels
width non-negative integer Width of the canvas in CSS pixels

Global

Example | height

Example | width

Example | DOM

External

W3C HTML5

W3C HTML 5.1