Skip to main content
100%

SVG Fundamentals

✓ Published1🌍 Public
EEarnAnurat
Last edited Oct 24, 2022
Created on Oct 23, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes on a blank canvas, including a pink circle, a thick navy line, and an unfilled rectangle. It shows how basic geometric elements are positioned using coordinate attributes like `cx`, `cy`, `x`, `y`, `width`, and `height`. The code renders directly through React’s JSX syntax, embedding an `<svg>` element with a fixed width of 960 and height of 500. It uses plain SVG markup without any additional libraries, relying solely on native browser support for vector graphics.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes