Articles → HTML 5 → Canvas Tag In Html5
Canvas Tag In Html5
Purpose
Syntax
<canvas id=" " width="" height=""></canvas>
- Id → Unique identifier for canvas.
- Width → Specifies the width of the canvas
- Height → Specifies the height of the canvas
Access Canvas Using Javascript
var canvas = document.getElementById("myCanvas");
Browser Support
| Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
|---|
| 9.0 | 2.0 | 4.0 | 3.1 | 9.0 | Yes |
Video
| Posted By - | Karan Gupta |
| |
| Posted On - | Wednesday, January 4, 2017 |
| |
| Updated On - | Thursday, January 3, 2019 |