Skip to main content
100%

SVG Fundamentals

✓ Published2🌍 Public
AAshwani Sajwan
Last edited Apr 24, 2024
Created on Apr 21, 2024
Forked from HTML Starter

This example demonstrates fundamental SVG shapes—a circle, a rectangle, and a line—positioned on a 900-by-450 pixel canvas with a visible black border. The circle is stroked with blue and unfilled, the rectangle is filled green with a blue outline, and the diagonal line is drawn in red. The code uses raw SVG markup embedded directly in an HTML document, specifying coordinates, dimensions, and colors via attributes like `cx`, `cy`, `r`, `width`, `height`, and `stroke-width`. No JavaScript libraries are employed; all rendering is handled natively by the browser's SVG engine.

AI-generated description

A demo of svg

MIT Licensed

Similar vizzes