🌍 Public
Viewing a saved revision (read-only)
e1faa918c9c5442c810143494c7a8e21
Shapes and Colors with SVG and CSS
This example demonstrates basic SVG shapes and color styling using inline attributes and CSS classes. It shows circles, rectangles, a line, and a polyline path, with fill colors applied directly (like red or `#83cc2a`) and inherited through group elements. The code uses SVG’s `<g>` elements for transforms (`scale`, `translate`), plus CSS rules to control stroke properties such as width, linejoin, and linecap. Rendering is entirely client-side via the SVG DOM, with no external libraries or data sources.
AI-generated descriptionAn example including some commonly used features of SVG.