Shapes and Colors with SVG and CSS
This example demonstrates how to construct and style basic geometric shapes—circles, rectangles, lines, and a path—using inline SVG elements and a linked CSS stylesheet. The drawing is scaled and translated via SVG `transform` attributes, with groups of shapes inheriting shared fills, strokes, and stroke widths from parent `<g>` elements. CSS classes further control the appearance of the polyline and path, specifying stroke color, line join, and line cap. The result shows how SVG’s native coordinate system and CSS presentational properties work together for crisp vector graphics.