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)

5bb254967f07412f9d7706e38f98504b

Shapes with SVG and CSS

0 stars1🌍 Public
Aadbirch
Last edited Jan 19, 2023
Created on Jan 19, 2023
Forked from HTML Cars Report

This example showcases basic SVG shapes—circles, rectangles, lines, and paths—styled with CSS. It demonstrates how SVG elements inherit presentation attributes like fill, stroke, and stroke-width from parent groups, using both inline attributes and CSS class selectors (`.lines`). The code uses raw SVG within an HTML page, with JavaScript and CSS linked externally, to illustrate styling and transformation effects like scaling and translation. The shapes are rendered directly in the browser without any external data.

AI-generated description

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

See also React Starter.