Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
YYangxi Liu
Last edited Mar 15, 2023
Created on Mar 14, 2023
Forked from HTML Starter

This example demonstrates fundamental SVG shapes on a blank 960x900 canvas, including circles, a rectangle, a line, and a path. It shows how SVG elements are positioned and styled directly in HTML markup. The code uses inline SVG attributes such as `cx`, `cy`, `r`, `x`, `y`, `width`, `height`, `stroke`, and `fill` without any JavaScript or external libraries. A red circle, a yellow rectangle with a blue stroke, a navy diagonal line, and a black polyline illustrate basic geometric primitives and attribute-based styling within a static React-free HTML document.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes