start vizhub
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed