Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

start vizhub

Public visualization

Viewing a saved revision (read-only)

bfcba27904674f3b8b1c22ba6e56df28

start vizhub

0 stars0🌍 Public
Xxani
Last edited May 14, 2021
Created on May 13, 2021
Forked from HTML Starter

This example renders a simple SVG rectangle positioned near the top-left of the browser window. The code uses the raw `document.createElementNS` API to generate SVG elements and sets their attributes directly, with dimensions based on the window’s inner width and height. Although the script references `window.innertWidth` (a misspelling of `innerWidth`), the drawing itself consists of a single rectangle with fixed x and width values. The page is a minimal demonstration of creating SVG graphics through vanilla JavaScript without any external libraries or frameworks.

AI-generated description

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

See also React Starter.