Skip to main content
100%

Shapes with SVG and HTML

✓ Published1🌍 Public
SSUPERMAN79355
Last edited Jun 4, 2020
Created on Jun 3, 2020
Forked from HTML Cars Report

This example uses raw SVG elements to display basic shapes, including two circles and two rectangles, on an HTML page. The shapes are styled with inline SVG attributes, with two shapes receiving custom fill colors—a purple circle and a pink rectangle—while the others use default black fills. The code directly employs SVG’s `<circle>` and `<rect>` elements within an `<svg>` container, rendered via standard HTML markup, with a linked stylesheet that resets the body margin and defines a `.highlighted` class. No JavaScript libraries are used; rendering relies purely on built-in SVG support in the browser.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes