Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars1🌍 Public
Mmkdeeps01
Last edited Nov 8, 2019
Created on Nov 8, 2019

This example displays a collection of basic SVG shapes—circles and rectangles—positioned on a 960 by 500 canvas, with individual elements styled directly via fill attributes or grouped within a `<g>` element to apply shared styling. The HTML markup uses standard SVG tags like `<circle>`, `<rect>`, and `<g>` with a transform for translation, while a linked stylesheet defines global body margins and a `.highlighted` class. Shapes appear in their default black unless explicitly colored red, green, or blue, demonstrating how SVG attributes and CSS rules combine for static vector rendering without JavaScript interaction.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed