🌍 Public
Viewing a saved revision (read-only)
1f66eb76fb284d42b2a94e57418abfe3
Shapes in SVG and CSS
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 descriptionA bare minimum HTML page.
See also React Starter.