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)

6e98c980e91b472e812fe4afac7b54bb

Shapes with SVG and CSS

0 stars0🌍 Public
AAznaggar
Last edited Jan 7, 2020
Created on Jan 7, 2020
Forked from HTML Starter

This example demonstrates basic SVG shapes—circles, rectangles, lines, and a path—arranged and styled with CSS and inline attributes. It shows how default black fills contrast with explicit colors like red and green, and how groups apply shared transforms and styles, such as translating shapes and adding strokes. The code uses plain SVG elements within an HTML file, with CSS classes controlling stroke color and width, and inline attributes like `fill` and `transform` for individual styling. The rendering is entirely SVG-based, with no external libraries.

AI-generated description