draw rectangle by using canvas in HTML5

Introduction In the last post about html5 canvas elements we only covered how to create a canvas element in HTML and then how to get it in JavaScript to draw some shape in it. In the start, we only see…