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

The rounding of rectangle corners can be controlled using the parameters rx andry. The rx attribute sets rounding along the horizontal axis, andry is used to specify it for the vertical one. If the ry attribute is not specified, it will be equal to rx.

Code example:

<rect width="50%" height="100" rx="50" ry="20"/>