canvas

< html‎ | elements(Redirected from canvas)
Jump to: navigation, search

canvas

This article is In Progress.


W3C Working Draft

Summary

The canvas element (<canvas>) provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly. The canvas element is one of the most important elements introduced in HTML5.


Overview Table

DOM Interface HTMLCanvasElement

Examples

HTML

<canvas width="800" height="600"></canvas>

Usage

The canvas api is a useful resource for working with the canvas element.



Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support 22.0
15.0
9.0
12.1
5.1

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support 2.1
7.0
18
2.0
9.0
10.0
?
3.2


Compatibility notes

Browser Version Note
Internet Explorer 9+ Hardware accelerated

See also

Related articles

Canvas



  • canvas