🌍 Public
Shapes and Colors with SVG and CSS
This example displays a simple SVG scene with a circle and a rectangle, each using default black styling except for the rectangle’s explicit green fill. The code defines both shapes directly in the HTML using SVG elements, with the circle placed at coordinates (50, 50) and a radius of 40, while the rectangle spans 100 pixels wide and 50 pixels tall. A plain script tag logs “Hello JavaScript!” to the browser’s developer console, demonstrating basic React-free SVG rendering within an HTML page. The visualization relies solely on native SVG and CSS properties rather than external libraries.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed








Comments
Sign in to join the discussion.