🌍 Public
Viewing a saved revision (read-only)
9bae589bcf7a4e3b960a7a34b9ba2f35
Shapes and Colors with SVG and CSS
This example demonstrates how SVG shapes, including circles, rectangles, lines, and paths, can be styled with inline attributes and CSS classes. It shows the same shapes rendered in default black, with explicit fill colors, and with a group-level fill and stroke applied via a transform. The code uses SVG elements directly within an HTML document, relying on CSS selectors like `.lines` and `.lines path` to set stroke properties. A scale transform enlarges the entire scene for display.
AI-generated descriptionAn example including some commonly used features of SVG.