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