🌍 Public
Viewing a saved revision (read-only)
aecd09830695492a9dcdc55dca0935c4
Shapes with SVG and CSS
This example shows how basic geometric shapes can be arranged and styled within an SVG canvas, using both inline attributes and CSS classes. It demonstrates a red circle, a green rectangle, and a blue group containing two rectangles and a circle, with a black line and a yellow path outlined. The rendering relies on SVG elements like `<rect>`, `<circle>`, `<line>`, and `<path>`, while the linked `styles.css` file provides global styling, including a `.highlighted` rule. Shapes are positioned directly via absolute coordinates and transformed using the `translate` attribute.
AI-generated description