Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
PPhil Gemellas
Last edited May 9, 2022
Created on May 9, 2022
Forked from HTML Starter

This example demonstrates the foundational building blocks of SVG graphics by rendering three distinct shapes directly in an HTML page: a yellow circle with a red outline, a green rectangle with a blue outline, and a black diagonal line. The illustration uses inline SVG elements within an HTML document, specifically the `<circle>`, `<rect>`, and `<line>` tags, with styling applied via basic SVG attributes like `fill`, `stroke`, and `stroke-width`. A static CSS rule sets the page’s message font size, while the SVG rendering itself relies solely on the native browser support for SVG markup, requiring no external libraries.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes