🌍 Public
Viewing a saved revision (read-only)
3ed3d11392274b7ab876af3a509185e5
Shapes and Colors with SVG and CSS
This example demonstrates how SVG shapes can be styled using both inline attributes and CSS. It shows circles and rectangles with explicit `fill` colors, and a group that inherits a fill and stroke from its parent, while individual shapes override these properties with their own attributes. The `.lines` class applies stroke styling to line and path elements, with the path taking its own color and stroke-linejoin settings. The graphic uses SVG elements like `<circle>`, `<rect>`, `<line>`, and `<path>` inside a `<g>` container with transforms for scaling and translation.
AI-generated descriptionAn example including some commonly used features of SVG.