🌍 Public
Viewing a saved revision (read-only)
9bfea82bf65c49f2a3bd1600b5ff191e
SVG Fundamentals
This example demonstrates fundamental SVG rendering and styling using a single red rectangle with a black stroke on a 960-by-500 canvas. It shows how CSS transitions animate the rectangle’s fill color and stroke width over three seconds when hovered. The code directly uses the SVG `rect` element, CSS `:hover` pseudo-class, and the `transition` property in an HTML page with embedded styles. No JavaScript libraries are involved.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.