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