Day 13: HTML5 की नई विशेषताएँ
असाइनमेंट:
<!DOCTYPE html>
<html>
<head>
<title>Canvas API</title>
</head>
<body>
<h2>Canvas ड्रॉइंग</h2>
<canvas id=”myCanvas” width=”400″ height=”200″ style=”border:1px solid #000;”></canvas>
<script>
const canvas = document.getElementById(‘myCanvas’);
const ctx = canvas.getContext(‘2d’);
ctx.fillStyle = “blue”;
ctx.fillRect(50, 50, 150, 100);
</script>
</body>
</html>