Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
Ddevansh1407
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from HTML Starter

This example demonstrates how simple geometric shapes—a yellow circle with a red stroke and a blue rectangle with an orange stroke—can be drawn directly in an SVG canvas. The code uses inline SVG elements (`circle` and `rect`) styled via presentation attributes like `fill` and `stroke-width`, with the page structured by plain HTML. No external libraries are used; the shapes are static and rendered by the browser’s SVG engine, providing a minimal illustration of primitive vector graphics.

AI-generated description
MIT Licensed

Similar vizzes