canvas tag
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.moveTo(20,20);
ctx.lineTo(190,55);
ctx.moveTo(0,0);
ctx.lineTo(200,100);
//CIRCLE
ctx.arc(100,60,30,0,2*Math.PI);
//Text
ctx.font = "30px Arial";
ctx.strokeText("Hello World",0,30);
ctx.stroke();
</script>
</body>
</html>