🌍 Public
Viewing a saved revision (read-only)
134c488580ae4ddd941cd19c4982ac22
Shapes with svg and CSS
This example demonstrates how to draw basic SVG shapes—circles, rectangles, lines, and paths—and style them using CSS classes. The shapes are nested inside a scaled and translated SVG group, showing how transforms affect their positions. The code uses raw SVG elements within an HTML page and applies styling through an external stylesheet, where the `.lines` class sets stroke color and width, and a descendant selector customizes the path's line join.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.