Shapes with SVG and CSS
✓ Published0🌍 Public
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.
MIT Licensed