Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Jjmarcrum3
Last edited Jan 18, 2020
Created on Jan 18, 2020
Forked from HTML Starter

This example displays basic geometric shapes—circles, rectangles, a line, and a path—drawn with SVG and styled through CSS. It shows how shape properties like fill color, stroke width, and stroke color can be set either as inline attributes or via classes in an external stylesheet. The code uses native SVG elements within an HTML file, with a CSS stylesheet defining the `.lines` class for styling. The rendering is purely static, with no JavaScript libraries, data sources, or interaction.

AI-generated description
MIT Licensed

Similar vizzes