Skip to main content
100%

start vizhub

✓ Published0🌍 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.

MIT Licensed

Similar vizzes