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.
EG:-
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="1000" height="500" style="border:1px solid #cccccc;">
</canvas>
</body>
</html>
No comments:
Post a Comment