Shapes and Colors with SVG and CSS
This example demonstrates basic SVG shapes with CSS styling, showing how circles, rectangles, lines, and paths render with different fill and stroke properties. The code uses raw SVG elements within an HTML document, applying presentation attributes like `fill`, `stroke`, and `stroke-width` directly on shapes and grouped elements. A CSS stylesheet defines additional styling rules for elements with the `.lines` class, including rounded line joins and caps. The SVG viewport is set to 960 by 500 pixels, with shapes positioned at various coordinates using the `transform` attribute for group-level translation.