canvas

< html‎ | elements(Redirected from Meta:HTML/Elements/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, by using the associated canvas API.


Overview Table

DOM Interface HTMLCanvasElement

HTML Attributes

  • height = non-negative integer
    The height of the canvas, in CSS pixels.
  • width = non-negative integer
    The width of the canvas, in CSS pixels.


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
1.0
Yes
?
Unknown
9.0
Yes
?
Unknown
?
Unknown

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
?
Unknown
1.0
Yes
?
Unknown
?
Unknown
1.0
Yes

Examples

HTML

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

Usage

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


Related specifications

Specification Status Related Changes
HTML 5.1 W3C Working Draft
HTML 5 W3C Recommendation

See also

Related articles

Canvas


  • canvas