HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
<Polygon> tag is used to create graphics containing at least three sides.
Polygons are straight lines, the shape is "closed" (all lines connected).
polygon from Greece. "Poly" a "many", "gon" means "angle".
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
Code analysis:
The following example creates a four-sided polygon:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
Use <polygon> element to create a star:
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).
Change the fill-rule attribute "evenodd":
Here is the SVG Code:
For Opera users: view SVG file (right-click on the preview source SVG graphics).