HTML <canvas> tag
Example <canvas> code
<canvas id="firstCanvas" width="250" height="250">
Unfortunately, your browser doesn't support the canvas element.
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the <canvas> tag, as well as a description of each.
|height||Designates the height of the canvas|
|width||Designates the width of the canvas|