<!DOCTYPE html> <html> <body> <h1>HTML5 Canvas</h1> <canvas id="myCanvas" width="200" height="200" style="border:1px solid"> </canvas> <script> const c = document.getElementById("myCanvas"); const ctx = c.getContext("2d"); ctx.fillStyle = "#92B901"; ctx.fillRect(50, 50, 100, 100); </script> </body> </html>