width attributes to set the dimensions of the canvas area in pixels. Height defaults to 150. Width defaults to 300.
<canvas id="canvas" width="600" height="600"> Text to display if the browser does not support the canvas element. </canvas>
Sets the height in pixels.
Sets the width in pixels.
User-submitted codepen.io examples of
Submit a codepen.io link that demonstrates
Help @reference spread the word by sharing this article on Twitter...Tweet This