<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CANVAS</title>
</head>
<body>
<canvas>width = "600" height = "400"</canvas>
<script>
var lienzo = document.querySelector("canvas");
var pincel = lienzo.getContext("2d");
pincel.fillStyle = "blue";
pincel.fillRect(10,25,95,100);
pincel.strokeRect(10,25,95,100)
pincel.fillStyle = "white";
pincel.fillRect(105,25,95,100);
pincel.strokeRect(105,25,95,100);
pincel.fillStyle = "red";
pincel.fillRect(200,25, 95,100);
pincel.strokeRect(200,25,95,100)
</script>
</body>
</html>