Shapes SVG Fundamentals
This example demonstrates how to construct and populate an SVG scene programmatically using the raw SVG DOM API. It draws a series of 100 vertical, blue-stroked rectangles that span the full height of the viewport, spaced evenly across the window’s width. The code creates an SVG element via `document.createElementNS`, sets its dimensions to match the browser viewport, and then appends each rectangle with explicit `x`, `width`, `height`, `stroke`, and `fill` attributes. The rectangles use alternating black fills and blue outlines, creating a striped pattern across the page.