HTML <canvas> height Attribute
Example
<canvas id="myCanvas" width="100" height="100">
Your browser does not support the HTML5 canvas tag.
</canvas>
Meaning
The height attribute specifies the height of the <canvas> element. (in pixels only)
Standard Syntax
<canvas height="pixels">
Advertisement
Attribute Values
| Value | Description |
|---|---|
| pixels | Specifies the height of the canvas (in pixels only), by default height is 150 |