Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
YYF
Last edited Oct 30, 2018
Created on Aug 29, 2018
Forked from Face in d3

This example demonstrates how basic geometric shapes—circles, rectangles, lines, and paths—can be drawn and styled using SVG elements and CSS. It shows shapes with default black fills, explicit color fills, grouped shapes with shared stroke and fill attributes, and a separate class for lines and paths that applies stroke styling via CSS rules. The code uses plain SVG markup within an HTML page, with a linked stylesheet for class-based styling, and includes an ES6 module exporting a message.

AI-generated description

This is a description using Markdown.

MIT Licensed

Similar vizzes