CANVAS TAG

<canvas> टैग पारदर्शी है, और ग्राफिक्स के लिए केवल एक कंटेनर है, आपको वास्तव में ग्राफिक्स बनाने के लिए एक स्क्रिप्ट का उपयोग करना चाहिए।

<!DOCTYPE html>
<html>
  <head>
    <title>Hi</title>
  </head>
<body>
<canvas id="myCanvas">Your browser does not support the canvas tag.</canvas>

<script>
var x = document.getElementById("myCanvas");
var ctx = x.getContext("2d");
ctx.fillStyle = "#000";
ctx.fillRect(0, 0, 80, 100);
</script>

</body>

</html> 

Tags
Copyright © 2021 Designed by Rishi Rao