Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Mmeghagoyal17
Last edited Apr 10, 2023
Created on Feb 28, 2023
Forked from HTML Starter

This example demonstrates basic geometric shapes rendered as scalable vector graphics: a red circle, a green rect, a thick black line, and a polygonal path composed of straight segments. The shapes are drawn directly in an SVG element within the HTML, with styling applied through inline attributes such as `fill`, `stroke`, and `stroke-width`. The accompanying CSS sets the page margins and overflow, while all visual properties for the shapes are defined using native SVG presentation attributes rather than a JavaScript library.

AI-generated description
MIT Licensed

Similar vizzes