shapes with SVG
✓ Published0🌍 Public
A simple SVG scene displays a red circle and a green square, alongside a blue circle and rectangle grouped inside a `<g>` element with a translation applied. The example demonstrates basic SVG shape creation and grouping using native SVG elements like `circle`, `rect`, and `g`, with fill colors set via attributes. The SVG is embedded directly in the HTML with a viewport of 960 by 500 pixels. A linked stylesheet defines page-level margins and overflow behavior, while an unused `.heighlighted` class is also present. The code uses no JavaScript libraries, relying solely on static SVG markup.
AI-generated descriptionMIT Licensed