Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
JJaKokosz
Last edited Mar 23, 2020
Created on Mar 23, 2020
Forked from HTML Starter

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—rendered on an HTML page with CSS styling. It shows how SVG presentation attributes like `fill`, `stroke`, and `stroke-width` combine with CSS classes (such as `.lines`) to control appearance, including a yellow path with rounded joins. The code uses raw SVG elements within a `<g>` group with transforms for scaling and translation, applying inline attributes for color and stroke styling. No external JavaScript libraries are used; the visualization relies solely on static SVG markup and linked `styles.css`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes