canvas

FilterElements

<canvas> ... </canvas>

HTML5 only. Represents a two-dimensional area that can be used for rendering dynamic bitmap graphics, such as graphs or games. The image on the canvas is generated with scripts.

Notes

The canvas element is one of the better supported HTML5 features, with basic support in Firefox 2.0+, Safari 3.1+, Chrome 1.0+, and Opera 9.0. Support is promised in Internet Explorer 9, but in the meantime, many developers use the ExplorerCanvas workaround (excanvas.sourceforge.net). A task force has been assembled to address the accessibility issues related to canvas to improve usability for the visually impaired.

Start/End Tags

Required/Required

Specifications

  • HTML5

height=

Values: number
Specifies the height of the canvas area in CSS pixels.

width=

Values: number
Specifies the width of the canvas area in CSS pixels.
<html>

Rendered Example