SVG Fundamentals
✓ Published0🌍 Public
This example shows a static SVG canvas containing a circle, a rectangle, and a line arranged without interaction. It demonstrates fundamental SVG shape elements—`circle`, `rect`, and `line`—with explicit attributes for position, size, fill, stroke, and stroke-width. The shapes are rendered directly in an HTML page using inline SVG markup, styled via presentation attributes rather than CSS rules. The code uses no external libraries, relying solely on the browser’s native SVG support, and serves as a minimal introduction to constructing vector graphics with plain markup.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed