🌍 Public
Viewing a saved revision (read-only)
5e82c3ec6b50466aa04727167c05a42b
Shapes with SVG and CSS
This example shows a collection of basic SVG shapes—circles, rectangles, lines, and a path—arranged on a 960x500 canvas. It demonstrates how SVG graphics are used directly in HTML. The code uses SVG elements like `<circle>`, `<rect>`, and `<line>`, with a CSS stylesheet defining stroke attributes for grouped `.lines` elements. Some shapes have explicit fill colors, while a transformed group applies a teal fill and black stroke. Rendering is done entirely with inline SVG.
AI-generated description