The following image shows examples of the <rect> element being used to create rectangles on an SVG canvas.
SVG Image:
View standalone SVG