HTML <canvas> Tag
Note: The <canvas> tag is new in HTML5.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
<canvas id = "script"> Contents... </canvas>
Attributes: The tag accepts two attributes as mentioned above and described below.
- height: This attribute is used to set the height of the canvas.
- width: This attribute is used to set the width of the canvas.
- Google Chrome 4.0
- Internet Explorer 9.0
- Firefox 2.0
- Opera 9.0
- Safari 3.1