🌍 Public
Viewing a saved revision (read-only)
8a19e0f91e3349349012bba6d2d2c4be
Shape with SVG and CSS
This example demonstrates how to create and style primitive SVG shapes using CSS and inline attributes. It shows circles, rectangles, lines, and a path rendered within an SVG canvas, with some shapes inheriting visual properties like fill color and stroke width from CSS classes. The code uses raw SVG elements such as `<circle>`, `<rect>`, `<line>`, and `<path>`, with CSS rules in `styles.css` controlling stroke and linejoin styles. The implementation relies on plain React or HTML, with SVG transforms like `scale` and `translate` repositioning shape groups.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.