🌍 Public
Viewing a saved revision (read-only)
13418646d47b4d9f89bbe6b9c82b292c
Shapes and Colors with SVG and CSS
This example demonstrates how SVG shapes can be styled using both inline attributes and CSS rules. It shows circles, rectangles, lines, and a path, with shapes rendered in default black, explicit fill colors like red and green, and a group with a light blue fill and black stroke. The code uses SVG elements such as `<circle>`, `<rect>`, `<line>`, and `<path>`, applying CSS classes for stroke styling and the `transform` attribute for scaling and translation. Rendering is handled directly through browser SVG support.
AI-generated descriptionAn example including some commonly used features of SVG.