Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
RRoger Yu-Hsiang Lo
Last edited Jan 14, 2020
Created on Jan 14, 2020
Forked from Hello VizHub

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
MIT Licensed

Similar vizzes