Skip to main content
100%

SVG Fundamentals

✓ Published0🌍 Public
Mmihaela diaconu
Last edited Sep 23, 2022
Created on Sep 23, 2022
Forked from HTML Starter

This example showcases basic SVG fundamentals by rendering two primitive shapes: a red circle and a blue rectangle. It demonstrates how to create and style SVG elements directly within an HTML page using inline SVG markup. The code uses native SVG elements—`circle` with `cx`, `cy`, `r`, and `fill` attributes, and `rect` with `x`, `y`, `width`, `height`, and `fill`—to illustrate position, size, and color properties. No external libraries or data sources are involved; the example relies purely on static, hand-coded SVG in a plain HTML file.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes