Skip to main content
100%

Shapes with SVG

✓ Published1🌍 Public
KKaleb LaBarrie
Last edited Jul 23, 2021
Created on Jul 22, 2021
Forked from HTML Starter

This example demonstrates how to draw basic geometric shapes—circles, rectangles, lines, and paths—using SVG markup within a React-like HTML structure. The shapes are defined directly in the SVG element, with some styled via CSS classes and inline attributes to show color, stroke, and scaling. The code uses the SVG `<g>` element to group shapes and apply transformations like `scale()` and `translate()`, along with CSS properties such as `stroke` and `stroke-width` for line styling. The visualization renders client-side entirely through SVG, with no external data sources or libraries beyond the standard SVG API.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes