🌍 Public
Viewing a saved revision (read-only)
91fb20c675fd4fde98ac1c7ef508812c
Shapes and Colors with SVG and CSS
This example shows how SVG shapes and CSS styling can be combined to create a simple, static visualization. It draws circles and rectangles with various fill colors, and includes a group that applies both a fill and stroke. A separate group of lines and a path demonstrates stroke styling with rounded joins and caps. The code uses raw SVG elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, with CSS rules in styles.css controlling stroke properties, while inline attributes and nested `<g>` transforms handle layout.
AI-generated descriptionAn example including some commonly used features of SVG.