VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-polygon/

⇱ SVG Polygon - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG Polygon

Last Updated : 28 Apr, 2025

The SVG (Scalable Vector Graphics ) Polygon the <polygon> element wrapped inside the <SVG> element is used to create a polygon. The meaning of a polygon is a shape having many angles. It must have at least three sides to make Polygon. The points of the polygon are defined with the attribute points and for giving style there are different attributes like stroke-width, stroke to define stroke color, and fill used to fill the area.

Example: The example illustrates the creation of an SVG Polygon.

Output:

👁 polygon1

Example 2: This is another example that illustrates the creation of an SVG Polygon.

Output:

👁 poly
Comment
Article Tags:
Article Tags: