SVG Fundamentals
✓ Published0🌍 Public
This example demonstrates the fundamental building blocks of SVG graphics. It shows a yellow rectangle with a blue border and a filled black circle positioned on a 600 by 600 canvas, with no interactive behavior. The code defines the shapes directly in an HTML file using the inline SVG element. It renders vector primitives, including `<rect>` and `<circle>`, and applies styling through attributes like `fill`, `stroke`, and `stroke-width`. The rendering uses the built-in browser support for SVG, with no additional JavaScript or libraries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed