VOOZH about

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

⇱ SVG Ellipse - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG Ellipse

Last Updated : 28 Apr, 2025

SVG Ellipse enables the creation of an ellipse with the help of the <ellipse> element. The <ellipse> element is generally wrapped inside the <SVG> element. While an ellipse looks like a circle, it has different rx and ry values, whereas a circle has a radius that is equal to all its sides or angles. For this, we generally use the stroke width for the stroke width. The cx and cy define the x-axis and y-axis coordinates of the center, respectively.

Example 1: In this example, we will see how to create the ellipse.

Output:

👁 1
 

Example 2: This example shows how to create an ellipse with a stroke color green and a stroke width with a fill ellipse.

Output:

👁 2
 

Example 3: This example shows how to create two ellipses one above.

Output:

👁 3
 
Comment
Article Tags: