Interactive online courses HTML Academy
2026-03-09 10:56 Diff

An ellipse is drawn in much the same way as a circle, but it has two radii: rx along the horizontal axis and ry along the vertical axis.

<ellipse rx="30" ry="40%"/>

You can specify the position of an ellipse or a circle using cx andcy.

<ellipse rx="30" ry="40%" cx="50%" cy="50%"/>