HTML5 drawing rectanglehttp://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery. min.js">>
<script><br>$(document).ready(function(){<br>var c =document.getElementById("drawbox");<br>var draw=c.getContext("2d"); //Get a reference to the 2d content and call the drawing API<br>draw.fillStyle="#ff0000"; // Method 1 specifies the fill color <br>draw.fillRect(0,0,300,100); //Coordinates and length and width<br>draw.fillStyle="rgba(0,0,255,0.5)"; //Method 2 rgb transparency<br> draw.fillRect(400,0,100,100); //Coordinates and length and width<br>})<br></script>