SVG Fundamentals
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed