Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

375345fd867143abb112e340f2b4728e

Shapes with SVG and CSS

0 stars1🌍 Public
AAreum Jo
Last edited Oct 11, 2019
Created on Oct 11, 2019
Forked from HTML Starter

This example demonstrates how to create basic geometric shapes using SVG elements—circles, rectangles, lines, and paths—with CSS styling applied to control fill colors, stroke properties, and grouping transforms. The rendering approach uses raw SVG markup within an HTML page, with a separate stylesheet defining classes like `.lines` to set stroke color and width on grouped elements. The code leverages native SVG attributes and CSS selectors to organize shapes into visually distinct groups, including one group where all elements share a common fill and stroke via inheritance. This illustrates the interplay between SVG’s coordinate system and CSS styling rules for graphical output.

AI-generated description

A bare minimum HTML page.

See also React Starter.