Shapes with SVG and CSS
This example demonstrates how fundamental SVG shapes—circles, rectangles, lines, and paths—can be styled and transformed using CSS and inline attributes. The visualization shows four groups of shapes with varied fills, strokes, and stroke widths, including a translated cluster with a purple fill and a black outline. A separate group applies CSS-defined stroke properties to lines and a path. The code uses native SVG elements within an HTML document, with styles defined in an external stylesheet. All shapes are rendered client-side, with no external data or JavaScript libraries involved.