🌍 Public
Viewing a saved revision (read-only)
b5fbd0fe9bfa4e1e9d9f3a5cef91ddcd
Shapes with SVG and CSS
This example demonstrates fundamental SVG shapes—circles, rectangles, lines, and paths—styled through both inline attributes and an external CSS stylesheet. It shows how fill, stroke, and stroke-width properties apply differently when set directly on elements versus via CSS classes. The code uses raw SVG markup within an HTML page, with a CSS rule targeting the `.lines` group to apply consistent styling, including a rounded line join for the path.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.