Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Ddaigou65
Last edited Nov 23, 2023
Created on Nov 23, 2023
Forked from HTML Starter

This example demonstrates basic SVG shapes—a red circle, a yellow rectangle with a blue stroke, and a navy line—rendered directly in an HTML page using the SVG namespace. It shows how CSS styling and inline presentation attributes control the visual appearance of these elements. The second lesson builds on this by adding a CSS `transition` to a rectangle, so hover interactions animate the fill color and stroke width over three seconds. The code uses plain SVG markup with CSS rules, not a JavaScript library like D3 or React.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes