Tuesday, 22 January 2013

What is Canvas?

The HTML5 <canvas> is the element, which is used to draw graphics, via scripting (generally JavaScript).
The <canvas> element is just a container for graphics. You must use a script in order to draw the graphics.
There are various methods of  Canvas for drawing paths, circles, boxes, characters and adding images.


<!DOCTYPE html>

<canvas id="myCanvas" width="1000" height="500" style="border:1px solid #cccccc;">



No comments:

Post a Comment