The <canvas>
element
A rectangular region of the webpage which displays an image that is drawn by JavaScript code. Usually used for games, animated graphs, or other interactive website features.
Full list of attributes
All the usual HTML global attributes are available
height
- The height of the box that should be created, in CSS pixels.
width
- The width of the box that should be created, in CSS pixels. Note that the width and height actually determine the resolution that the resulting image will be stored at.