Fork of SVG Fundamentals
✓ Published0🌍 Public
This example demonstrates fundamental SVG shapes and positioning within a fixed 960×500 viewport. It shows a house-like structure composed of rectangles—a cyan-tinted door, two windows, and a larger body—all outlined in navy, beneath a red triangular roof formed by three connected line segments. The code uses plain SVG elements such as `rect` and `line` with explicit `x`, `y`, and `stroke-width` attributes, rendered directly in the HTML without any JavaScript or external libraries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed