SVG Fundamentals
✓ Published0🌍 Public
This example illustrates fundamental SVG shapes, including two circles and a rectangle, rendered directly within an HTML document. The code uses vanilla JavaScript and CSS within the SVG markup, demonstrating basic attributes like `cx`, `cy`, `r`, `fill`, and `stroke`. It shows how to apply solid colors, outlines, and stroke widths to simple geometric elements, with one circle displayed in its default black fill and another in red. The rectangle uses no fill and an orange stroke.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed