Skip to main content
100%

SVG fundamentals

✓ Published0🌍 Public
SStuartSutherland
Last edited Jan 4, 2023
Created on Jan 4, 2023
Forked from HTML Starter

This example demonstrates basic SVG shapes rendered directly in an HTML page, using the `circle` and `rect` elements to display geometric primitives with simple fill and stroke styling. The visualization shows a red circle and a yellow rectangle with a navy border, positioned within a 960 by 500 pixel viewport. The code relies on native SVG markup without external libraries or JavaScript, making it a minimal introduction to vector graphics. The CSS properties are applied inline through attributes such as `fill`, `stroke`, and `stroke-width`, illustrating how SVG handles coordinate-based drawing 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