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 Explorer | Firefox | Chrome | Safari | Opera | Edge |
9.0 | 3.0 | 4.0 | 3.2 | 10.1 | Yes |