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>



Output



Click to Enlarge


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