🌍 Public
Viewing a saved revision (read-only)
b6021c9ae22b43d9a0ae4ff4664c2950
Shapes and Colors with SVG and CSS
This example demonstrates how SVG shapes and CSS styling can be combined to create static vector graphics. It shows circles, rectangles, lines, and a path, with colors applied both through inline attributes like `fill="red"` and `fill="#83cc2a"`, as well as through CSS classes defined in `styles.css`. The `<g>` elements use the `transform` attribute to group and position shapes, including `scale` and `translate` operations. Rendering relies purely on SVG within an HTML document, with no JavaScript libraries, and the external stylesheet controls stroke properties for the line and path elements.
AI-generated descriptionAn example including some commonly used features of SVG.