🌍 Public
Viewing a saved revision (read-only)
ce64bc297d1f448082b7820df14fe41c
Shapes with SVG and CSS
This example displays a collection of basic geometric shapes—circles, rectangles, lines, and a path—arranged in groups using SVG elements inside an HTML page. The code applies CSS classes to style the line group with a black stroke and a rounded path join. A transform attribute scales the entire drawing by 1.5 times, while groups use translate to position shapes, with fill and stroke properties set directly on elements to control color and borders.
AI-generated description