Skip to main content
100%

SVG Basics

✓ Published0🌍 Public
DDan Bradley
Last edited Jun 29, 2023
Created on Jun 29, 2023
Forked from HTML Starter

This example demonstrates the fundamental building blocks of SVG rendering in a React environment, displaying basic shapes including two circles and a path on an 900x200 canvas. The code uses raw SVG elements—`circle` and `path`—with inline styling properties like `fill` and `stroke` to control appearance, alongside CSS classes for text styling. A large message "SVG WON'T LET ME BE!" sits above the graphic, while JavaScript and CSS are embedded directly in the HTML file. The rendering approach relies on native SVG markup rather than a visualization library, making it a clear illustration of SVG syntax and attribute usage.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes