Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

1632b5110edf47c4b653770602c86e32

Fork of HTML Starter

0 stars0🌍 Public
JJacobRozak
Last edited Mar 12, 2023
Created on Mar 11, 2023
Forked from HTML Starter

This example demonstrates a grid of two SVG rectangles, each 50 by 50 pixels, with a black stroke and no fill, rendered in a 500 by 500 SVG container. It shows how to use a Tile builder pattern with a Tile class to programmatically create SVG `<rect>` elements via the DOM API `document.createElementNS`. The script also directly manipulates the second rectangle’s fill to black, and includes a button labeled “double,” though no click handler is defined. The rendering approach is pure SVG with no external libraries.

AI-generated description

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

See also React Starter.