SMS
0
Q:

canvas tag html


<canvas id="myCanvas" width="200" height="100"
style="border:1px solid 
#000000;">

</canvas>
 
0
//HTML
<canvas id="canv"></canvas>

//Javascript
var canvas = document.getElementById("canv");
canvas.width = canvas.height = 100;
var ctx = canvas.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(10, 10, 80, 80);
0

New to Communities?

Join the community