HTML | <canvas> height Attribute
The HTML <canvas> height Attribute is used to specify the height of the <canvas> element in terms of pixels.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
Attribute Values: It contains single value pixels which specify the height of the canvas in terms of pixel. It has a Default value which is 150.
Example: This example illustrates the use of height attribute in Canvas Element.
Supported Browsers: The browser supported by HTML <canvas> height Attribute are listed below:
- Google Chrome 4.0
- Internet Explorer 9.0
- Firefox 2.0
- Safari 3.1
- Opera 9.0