Articles → HTML 5 → Canvas tag in HTML5

Canvas tag in HTML5






Purpose







Syntax


<canvas id=" " width="" height=""></canvas>











Access canvas using JavaScript




var canvas = document.getElementById("myCanvas");



Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.02.04.03.19.0Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, January 04, 2017
 
Updated On  -  Thursday, January 03, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250