Skip to main content
100%

Shapes and Colors with SVG and CSS

✓ Published1🌍 Public
Sshubhampawar0151
Last edited Oct 11, 2020
Created on Oct 11, 2020

A set of basic SVG shapes—two circles and two rectangles—are displayed on a 960 by 500 canvas. The first pair uses default black fills, while the second pair is explicitly colored red and blue, demonstrating inline presentation attributes. A `<g>` group element then translates all shapes down by 100 pixels, applying a brown fill and black stroke with a 5-pixel width to both shapes simultaneously. The example showcases fundamental SVG structure with CSS for page margins, and relies on the SVG API for all drawing and grouping operations.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes