Skip to main content
100%

SVG Fundamentals

✓ Published2🌍 Public
TTheo-0201
Last edited Sep 18, 2023
Created on Sep 18, 2023
Forked from HTML Starter

This example demonstrates fundamental SVG shape elements—circles, rectangles, lines, and paths—statically positioned on a 960×500 canvas. It shows how fill, stroke, stroke-width, and coordinate attributes control appearance, while explaining that no z-index exists; the document order determines stacking. The code uses raw SVG markup within an HTML page, with CSS resets for margins and overflow. Path commands like `M` and `L` illustrate absolute positioning, contrasting with relative `l` syntax, providing a hands-on introduction to SVG’s drawing model for future data-visualization work.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes