Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
VVeena Muralidharan
Last edited Aug 13, 2019
Created on Aug 13, 2019
Forked from HTML Cars Report

This example displays basic SVG shapes—a circle, rectangle, line, and path—arranged in two groups on a 960×500 canvas. The shapes are rendered with inline SVG markup, while CSS styles the line group with a black stroke and the path with a red, round-joined stroke. A `<g>` element with a `fill="blue"` attribute applies color to the circle and rectangle, and the overall graphic is transformed using SVG `translate` and `scale` operations. No JavaScript libraries are used; the visualization relies entirely on static HTML, SVG, and CSS.

AI-generated description
MIT Licensed

Similar vizzes