Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Bbnieskens
Last edited Feb 3, 2023
Created on Feb 3, 2023
Forked from HTML Starter

This example demonstrates basic SVG shapes drawn directly in an HTML document without any JavaScript libraries. It shows a blue circle positioned at coordinates (100,100) with a radius of 50, and an orange rectangle starting at x=200 with a blue stroke outline. The SVG canvas is 800 pixels wide by 500 pixels high. The code uses raw SVG elements—`<circle>` and `<rect>`—with attributes for positioning (cx, cy, r, x, y) and styling (fill, stroke, stroke-width), illustrating fundamental vector graphics rendering in the browser.

AI-generated description

Based on freeCodeCamp.org's Youtube Course on D3

cx: center x-coördinate cy: center y-coördinate r: radius

MIT Licensed

Similar vizzes