Skip to main content
100%

creating a line

✓ Published0🌍 Public
Rrayray196
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from HTML Starter

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes