VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-rx-attribute/

⇱ SVG rx Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG rx Attribute

Last Updated : 31 Mar, 2022

The rx attribute defines a radius on the x-axis.

    Elements that are using this attribute:

  • <ellipse>
  • <rect>

Syntax:

rx = "x-radius"

Attribute Values:

  • length: Length at which we want to set the x-radius.
  • percentage: Percentage at which we want to set the x-radius.

We will use the rx attribute for setting the radius on the x-axis.

Example 1:

Output:

👁 Image
Example 2:

Output:

👁 Image
Comment