Skip to main content
100%

SVG Fundamentals

✓ Published1🌍 Public
Llukasreber
Last edited Jun 17, 2022
Created on Jun 16, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes—a circle, a line, and text—as rendered on a 500x500 canvas. It shows how basic SVG elements are positioned and styled using attributes like `cx`, `cy`, `r`, `x`, `y`, `stroke`, and `fill`. The code uses plain HTML with embedded CSS and JavaScript, and the rendering approach relies entirely on native SVG markup. A Roboto font from Google Fonts styles the large 'A' text element, while the shapes are drawn with visible stroke widths and colors.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes