<canvas id="testCanvas">trình duyệt của bạn không hỗ trợ thẻ canvas</canvas>

<script>
var c = document.getElementById("testCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "blue";
ctx.fillRect(0, 0, 80, 100);
</script>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.