🌍 Public
Viewing a saved revision (read-only)
9e4ee2bcde4644cc85e3ec75fc1f730a
Shapes and Colors with SVG and CSS
This example demonstrates how to draw and style basic SVG shapes—circles, rectangles, lines, and paths—using a combination of inline attributes and an external CSS stylesheet. The SVG canvas scales by a factor of 1.7, and shapes are grouped using `<g>` elements to apply shared fill and stroke properties or CSS classes. It showcases direct SVG markup and CSS selectors (e.g., `.lines path`) for controlling stroke color, width, and line joins, with no JavaScript libraries involved.
AI-generated descriptionAn example including some commonly used features of SVG.