canvas
function createRedSquare() { var canvas = document.getElementsByTagName("canvas")[0]; var context = canvas.getContext('2d'); context.fillStyle = "red"; context.fillRect(0,0,100,100); }