Skip to main content
100%

Flags

✓ Published1🌍 Public
Jjustinhersom@gmail.com
Last edited Dec 3, 2023
Created on Dec 2, 2023
Forked from HTML Starter

This example renders a stylized flag by dividing the browser viewport into three horizontal bands of black, white, and green, then overlaying a red chevron shape. It uses raw SVG creation via the Document Object Model (`document.createElementNS`) and sets attributes directly on SVG `rect` and `path` elements. The flag’s dimensions adapt to the full window size, and the chevron is drawn with an absolute path command. No external libraries are used, only native JavaScript and SVG APIs.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes