Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Ppengpenghub
Last edited Mar 5, 2020
Created on Mar 5, 2020
Forked from HTML Cars Report

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes