SVG Basics
This example demonstrates three basic SVG shapes—a rectangle, a circle, and a line—rendered directly in a web page. The SVG element has a fixed width and height, with the shapes positioned using explicit `x`, `y`, `cx`, `cy`, and `radius` attributes. It uses no external JavaScript libraries, relying solely on the native SVG markup embedded in HTML. The line is drawn with a black stroke, while the rectangle and circle use default fills. The code serves as a minimal introduction to SVG syntax and coordinate systems.
AI-generated descriptionA small code example showing basic SVG Shapes.
Part of the course D3.js in Motion.
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/30488e66d2ed50eaea82d4d012bf64a2'>HTML Starter</a>