Â
JavaScript must be used to draw the graphics actually.
Canvas has many methods for drawing boxes, circles, text, paths, adding images.
Canvas markup is defined as follows -Â
<canvas id="testCanvas" width="200" height="100"></canvas>
Now using javascript following scripts show how to draw a circle -Â
var c = document.getElementById("testCanvas");
var cx = c.getContext("2d");
cx.beginPath();
cx.arc(95, 50, 40, 0, 2 * Math.PI);
cx.stroke();
Hope it was useful information, don't forget to share and like it.