Create a SVG polygon

A simple example of creating a SVG polygon.
<!DOCTYPE HTML>
<html>
  <head>
    <style>
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
  </head>
  <body>

       <svg xmlns="http://www.w3.org/2000/svg" width="300px" height="200px">
          <polygon fill-rule="evenodd" fill="green" stroke="black" points="148,16 116,96 196,48 100,48 180,96" stroke-width="5" />
       </svg>

  </body>
</html>  

Responses

0 Replies