🌍 Public
Viewing a saved revision (read-only)
babd9aea27f34019afa0cb672e495cc6
Shapes With SVG and CSS
This example demonstrates how SVG shapes can be styled using both inline attributes and CSS classes. Circles, lines, and a path are rendered inside an SVG element, with a green stroke applied to line elements and a blue stroke with rounded joins to the path. The code uses basic SVG elements (`circle`, `line`, `path`, `g`) and CSS selectors to control fill and stroke properties, including a group-level fill override with a red stroke. The HTML page loads a stylesheet and scales the entire drawing with an SVG transform.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.