For example,

<!DOCTYPE html>
<html>
<body>

<canvas id="myCanvas" width="400" height="250" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML canvas tag.</canvas>

<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.font = "30px Arial";
ctx.fillText("Welcome to Wikitechy",10,50);
</script>

</body>
</html>

Output

Categorized in:

Web Designing

Tagged in:

, , , , , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO