Shapes with SVG and CSS
✓ Published1🌍 Public
This example displays a collection of basic SVG shapes—circles and rectangles—positioned on a 960 by 500 canvas, with individual elements styled directly via fill attributes or grouped within a `<g>` element to apply shared styling. The HTML markup uses standard SVG tags like `<circle>`, `<rect>`, and `<g>` with a transform for translation, while a linked stylesheet defines global body margins and a `.highlighted` class. Shapes appear in their default black unless explicitly colored red, green, or blue, demonstrating how SVG attributes and CSS rules combine for static vector rendering without JavaScript interaction.
AI-generated descriptionMIT Licensed