🌍 Public
Viewing a saved revision (read-only)
1616138f22cc461cb28a2a018c1b55e9
Shapes with SVG and CSS
This example demonstrates how to create and style basic SVG shapes—circles, rectangles, lines, and paths—using CSS classes and inline attributes. It renders a static scene of colored shapes, some grouped with transforms for scaling and translation, while the CSS applies stroke, fill, and line-join styles to the line and path elements. The code uses native SVG elements directly in HTML, with CSS rules targeting shape classes and groups, without any JavaScript libraries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.