Polygons

The polygon element defines a closed shape consisting of a set of connected straight line segments.

Example

<!DOCTYPE HTML>
<html>
    <head>
        <title>SVG tutorial</title>
    </head>
    <body>
        <svg width="120" height="120">
            <polygon points="60,20 100,40 100,80 60,100 20,80 20,40"/>
        </svg>
    </body>
</html>

Output

Untitled