Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
XXinya Gao
Last edited Dec 31, 2020
Created on Dec 31, 2020
Forked from HTML Starter

This example demonstrates basic SVG shapes and styling using CSS and inline attributes. It displays circles, rectangles, lines, and a path, with some shapes using explicit `fill` and `stroke` values while others inherit styles from CSS classes. The page renders a single SVG element with a `transform` scale, and a grouped set of shapes applies stroke settings via a `.lines` class. The code uses plain HTML and CSS, with no JavaScript libraries, and includes a React starter reference in the README.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes