Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Sscarlet shao
Last edited May 30, 2021
Created on May 28, 2021
Forked from HTML Starter

This example demonstrates how basic geometric shapes—circles, rectangles, lines, and paths—are drawn on an SVG canvas with styling applied through CSS. The SVG markup defines each shape’s coordinates and attributes, while the linked stylesheet controls stroke color, width, and line joins for the grouped `.lines` elements. React is not used; the code relies on plain HTML, CSS, and JavaScript (though no JavaScript appears in the visible files). The rendering method is SVG, with a scale transform applied to the root group.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes