SVG Tutorial on SVG Shapes

svg provides number of shapes which can be used to draw images. following are the common shapes.

sr.no. shape type & description
1 rect

used to draw a rectangle.

2 circle

used to draw a circle.

3 ellipse

used to draw a ellipse.

4 line

used to draw a line.

5 polygon

used to draw a closed shape consisting of connected straight lines.

6 polyline

used to draw a open shape consisting of connected straight lines.

7 path

used to draw any path.