🌍 Public
Viewing a saved revision (read-only)
be338ce57a7c4179a89726384a950e27
Shapes and Colors with SVG and CSS
This example demonstrates basic SVG shape creation and styling through both inline attributes and CSS classes. It shows circles, rectangles, lines, and a polygonal path positioned with SVG transform groups. The code uses native SVG elements inside an HTML document, with a linked stylesheet defining stroke and fill properties for grouped elements. A parent group applies a scale transform, while nested groups use translation to offset shapes, and the `.lines` class controls stroke appearance for the path and line elements.
AI-generated descriptionAn example including some commonly used features of SVG.