Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Ccrajy030@mymail.unisa.edu.au
Last edited Oct 16, 2025
Created on Oct 16, 2025
Forked from HTML Starter

This example demonstrates basic SVG shape rendering in a static HTML document. It shows several primitive shapes—circles, a rectangle, and a line—positioned on a 700×500 canvas. The code uses the native SVG API directly, with inline attributes like `cx`, `cy`, `r`, `x`, `y`, `stroke`, and `fill` to define geometry and styling. No JavaScript libraries are involved; the shapes are drawn declaratively in markup, and the only script is a console log. The visual output highlights how SVG handles vector graphics through XML elements.

AI-generated description
MIT Licensed

Similar vizzes