Thursday, 18 July 2013

(Q) What is HTML-5 canvas element ?

Ans:- The HTML5 <canvas> element is used to draw graphics, animation on html page via scripting (usually JavaScript).
Canvas has several methods for drawing paths, boxes, circles, characters, and adding images.



ex:- <canvas id="myCanvas" width="200" height="100"
 style="border:1px solid #000000;">
</canvas>