Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSSt

Public visualization

Viewing a saved revision (read-only)

6e553733e97d4af7aa5e6a873b5e594f

Shapes with SVG and CSSt

0 stars0🌍 Public
SSurya tej
Last edited Oct 12, 2020
Created on Oct 12, 2020
Forked from HTML Starter

This example shows how SVG shapes—circles and rectangles—can be styled with CSS and inline attributes. It demonstrates variations in fill color using inline properties like `fill="red"` and hex values, as well as grouping with the `<g>` element to apply shared styling such as stroke and stroke-width. The rendering approach uses React’s SVG support, with the shapes drawn directly in the `index.html` file and global body styles defined in `style.css`. No external libraries or data sources are involved.

AI-generated description

A bare minimum HTML page.

See also React Starter.