Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
SSchmittYannic
Last edited Aug 7, 2020
Created on Aug 7, 2020
Forked from HTML Starter

This example demonstrates how to draw and style basic SVG shapes—circles, rectangles, lines, and paths—using a combination of inline SVG attributes and external CSS rules. It shows how CSS classes can control stroke color, width, and line join styling, while SVG group elements apply global transforms and presentation attributes like `fill` and `stroke` to multiple children. The rendering uses raw SVG markup within an HTML page, with styles defined in a separate stylesheet.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes