🌍 Public
Viewing a saved revision (read-only)
a23bcf0b1a0a48449ba4cefa5503d380
creating a line
This example shows a simple black line drawn on a white SVG canvas, with a short path segment branching off from its endpoint. The page renders directly in the browser using React and SVG elements, specifically the `line` and `path` tags. It demonstrates how to position coordinates with the `x1`, `y1`, `x2`, and `y2` attributes and how to define a custom stroke with the `path` `d` attribute, all within a fixed 1000×1000 viewport. The code does not load external data or process datasets.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.