Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
ZZololen
Last edited Jul 3, 2022
Created on Jul 2, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes—circles, rectangles, lines, and a path—arranged on a 960 by 500 canvas, showing varied fill colors, stroke styles, and transparency defaults. The blue-outlined rectangle frames the drawing area, while a yellow rectangle with a thick navy border and a diagonal line illustrate coordinate-based positioning. It uses raw SVG markup within an HTML page, styled and laid out without any JavaScript libraries or frameworks. The code directly declares elements like `<circle>`, `<rect>`, `<line>`, and `<path>`, with attributes controlling geometry, color, and stroke. This serves as a minimal, self-contained reference for SVG rendering in the browser.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes