🌍 Public
Viewing a saved revision (read-only)
a16cf92d20c04f56aef5d3be5b482d67
Shapes with SVG and CSS
This example demonstrates how SVG shapes can be styled and grouped using both inline attributes and Cascading Style Sheets (CSS). It renders circles, rectangles, a line, and a path directly within an SVG element. The shapes use inline properties like `fill`, `stroke`, and `stroke-width`, while the `.lines` CSS class applies red strokes to the line and path elements. The `path` is further styled with a green stroke and rounded line joins via `.lines path`, showing how SVG presentation attributes can complement and override CSS rules.
AI-generated description