<canvas width:=650px height="500px" id="my-canvas">
<canvas>
let myCanvas = document.getElementById('my-canvas');
let ctx = myCanvas.getContext('2d');

ctx.fillStyle = 'lightblue';
ctx.fillRect(20,20, 180, 150);

ctx.strokeStyle = 'blue';
ctx.strokeRect(40, 40,140,120);

ctx.fillStyle ='green';
ctx.fillRect(60, 60, 100, 90);

ctx.clearRect(80, 80, 65, 60);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.