Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes and Colors with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

6a6cb17b39de4e508f567ed54209b08e

Shapes and Colors with SVG and CSS

0 stars1🌍 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.