🌍 Public
Viewing a saved revision (read-only)
7c380f6726c24642a806a64c6359b032
Shapes with SVG and CSS
This example shows how to draw basic shapes—circles, rectangles, lines, and paths—using raw SVG elements positioned within a single grouped coordinate space. It demonstrates that SVG styling can come from presentation attributes, inline CSS properties, or a stylesheet, with the CSS file also controlling overall page layout and stroke characteristics like line joins. The code uses no JavaScript libraries; it relies solely on the SVG API and a linked CSS file to define shape appearance, including a scaled group and translated sub-groups for spatial arrangement.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.