Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
AAloha1403
Last edited Jan 14, 2020
Created on Jan 14, 2020
Forked from HTML CARS REPORT

This example demonstrates basic SVG shapes—circles, rectangles, lines, and a path—positioned and styled directly in HTML. It shows how CSS classes and inline attributes control fill colors, strokes, and grouping via SVG `<g>` elements. The code uses no external libraries, relying on native SVG elements and a linked `styles.css` file for styling. A global transform translates a grouped set of shapes, while the `.lines` class applies black strokes with a green, round-joined path, illustrating CSS’s role in SVG presentation.

AI-generated description
<!DOCTYPE html> <html> <head> <title> HTML Cars Report</title> </head> <body> <h1> Cars Report </h1> </body> </html>
MIT Licensed

Similar vizzes