SVG Polygon: < polygon > element

The SVG <polygon> element is used to draw a polygon of various sizes. The attributes (x, y) represents the coordinates of each vertex of the polygon and each co-ordinate(X, Y) are separated by a white space.

Here is a simple example of SVG polygon element.

 Code

Output