<!DOCTYPE html>
<html>
<head>
<title>HTML canvas tag</title>
</head>
<body>
<canvas id="CanvasEx"> </canvas>
<script type="text/javascript">
var canvas=document.getElementById('CanvasEx');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FFcc00';
ctx.fillRect(0,5,80,110);
ctx.fillStyle='#FF9900';
ctx.fillRect(25,0,120,50);
ctx.fillStyle='#FF00cc';
ctx.fillRect(100,35,120,60);
</script>
</body>
</html>