🌍 Public
Viewing a saved revision (read-only)
c144a4dc5bd4423191c50aadc3651c5c
Shapes with SVG and CSS
This example demonstrates how to create basic SVG shapes—circles, rectangles, lines, and paths—with CSS styling and SVG grouping. It renders a static composition on a 960×500 SVG canvas, using transform attributes to reposition grouped elements and apply fill, stroke, and stroke-width properties. The code uses raw SVG elements within a React project, with a separate CSS file defining global styles and a `.lines` class that overrides stroke properties for line and path elements. The page loads from a minimal HTML file and displays placeholder text via JavaScript.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.