Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Kktshim@snu.ac.kr
Last edited Oct 11, 2022
Created on Oct 11, 2022
Forked from HTML Starter

This example demonstrates basic SVG shapes, including a circle, rectangle, line, and path, as rendered directly in an inline `<svg>` element. It shows how each shape’s attributes—such as `cx`, `cy`, `r` for the circle, and `x`, `y`, `width`, `height`, `fill`, `stroke`, and `stroke-width` for the rectangle—control its geometry and styling. The code uses raw SVG APIs without any JavaScript libraries, with styles applied via presentation attributes. The path element draws a polyline using the `d` attribute’s `M` and `L` commands, illustrating coordinate-based drawing.

AI-generated description

A demonstration of SVG shapes.

MIT Licensed

Similar vizzes