Skip to main content
100%

Shape with SVG

✓ Published0🌍 Public
Wwiwinsrimulyani
Last edited Apr 28, 2020
Created on Apr 28, 2020
Forked from HTML Starter

A collection of basic SVG shapes—circles and rectangles—arranged in pairs on a canvas, with one group wrapped in a `<g>` element that applies a blue fill and black stroke to its children. The example demonstrates color overrides and inheritance through SVG attributes, including explicit `fill` and `stroke-width` properties on individual shapes. It also showcases a `<g class="lines">` group containing a `<line>` and a `<path>` that draw an angular, unconnected path across the lower portion of the viewport, with stroke styling applied via CSS. The code directly uses SVG elements like `circle`, `rect`, `line`, and `path` within a static `<svg>` embedded in HTML, with no JavaScript or data binding.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes