Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
JJordan Chiu
Last edited Jan 8, 2020
Created on Jan 8, 2020
Forked from HTML Starter

This example demonstrates basic SVG shapes—circles, rectangles, lines, and paths—styled through both inline attributes and external CSS rules. The code uses raw SVG elements within an HTML page, with a React starter context, and applies CSS selectors like `.lines` and `.lines path` to control stroke color, width, and line joins. A grouping element with translate and fill/stroke attributes shows inherited styling, while a scale transform enlarges the entire visualization. The rendering relies entirely on SVG markup and CSS, with no data or JavaScript logic involved.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes