🌍 Public
Viewing a saved revision (read-only)
e26ef1bc74394f9aa5f4cd181445afa8
Shapes with SVG and CSS
This example demonstrates how to create and style basic SVG shapes—circles, rectangles, lines, and paths—using both inline SVG attributes and an external CSS stylesheet. It shows how presentational properties like fill, stroke, and stroke-width can be set directly on elements or inherited from parent `<g>` groups and CSS classes. The visualization uses React to render the SVG elements within an HTML page, with the `.lines` class applying green strokes and rounded line joins to paths, while a group transform scales and translates the shapes.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.