Menu Samaritan's Purse

CANVAS

The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly.

SYNTAX

HTML

<canvas attribute-name="attribute-value"></canvas>

ATTRIBUTES

Global

NAME VALUE DESCRIPTION
height non-negative integer Vertical dimension
width non-negative integer Horizontal dimension

EXAMPLES

HEIGHT

WIDTH

JS

Web Hypertext Application Technology Working Group (WHATWG)