🌍 Public
Viewing a saved revision (read-only)
b8bcf8cff4f44cdd95d38a26ddea5ad2
Shapes with SVG
This example shows how to draw basic SVG shapes—circles, rectangles, and a line—on an HTML page. It demonstrates grouping with `<g>` elements to apply shared fill and stroke styles, and shows how individual shapes within a group can override those properties. The code uses raw SVG markup embedded directly in the HTML, with attributes like `transform`, `fill`, and `stroke-width` controlling appearance and position. No JavaScript libraries are used; rendering relies entirely on the browser’s native SVG support.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.