🌍 Public
Viewing a saved revision (read-only)
55ad6e0245ab4bc7b84f94af885c72b4
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.