Skip to main content
100%

Shapes in SVG and CSS

✓ Published1🌍 Public
BBaraneedharan N M
Last edited Aug 12, 2020
Created on Aug 12, 2020
Forked from Cars Report 2

This example demonstrates basic SVG shape rendering using React-compatible HTML. It uses SVG elements like `circle`, `rect`, `line`, and `path` inside a static `svg` tag, with CSS applied via an external `styles.css` file that removes page margins. The code draws two red circles, a green rectangle, and a black line segment with a diagonal path, all positioned within a 960×500 viewport. It serves as a minimal introduction to composing SVG graphics without JavaScript interaction.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes