Articles → HTML 5 → SVG Polygon In Html5

SVG Polygon In Html5






Purpose







Syntax


<svg height="" width="">
   <polygon points="list of x and y coordinates of sides of polygon" />
</svg>



Example


<!DOCTYPE html>
<html>
   <body>
      <svg height="410" width="500">
         <polygon points="300,10 500,310 160,310" />
      </svg>
   </body>
</html>

Try It


Output


Picture showing the output of SVG polygon in HTML5



Browser Support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.03.04.03.210.1Yes



Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, September 27, 2017

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250