🌍 Public
Viewing a saved revision (read-only)
c266bf89846246a7a5dd9ffdaa8d7892
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.