HTML and CSS Reference
In-Depth Information
Name
canvas
Synopsis
<canvas> . . . </canvas>
Not in HTML 4.01 . Represents a two-dimensional area that can be used for rendering dy-
namic bitmap graphics, such as graphs, games, drawing programs, animations, and so on. The
markup establishes a rectangular space on the page for the canvas. The image on the canvas is
generated with scripting (usually JavaScript).
The canvas element is one of the better supported HTML5 features, with basic support in
Firefox 2.0+, Safari 3.1+, Chrome 1.0+, Internet Explorer 9+, and Opera 9.0. The FlashCan-
vas JavaScript library ( flashcanvas.net ) can add canvas support to nonsupporting browsers us-
ing the Flash drawing API.
Usage
Categories:
Flow content, phrasing content, embedded content, palpable content
Permitted contexts:
Where embedded content is expected
Permitted content:
Transparent, either phrasing or flow content
Start/end tags:
Required/Required
Attributes
HTML5 Global Attributes
Search WWH ::




Custom Search