Skip to main content
100%

SVG Fundamental

✓ Published0🌍 Public
HHafizh-Iman-Naufal
Last edited Jun 1, 2022
Created on Jun 1, 2022
Forked from HTML Starter

This example demonstrates fundamental SVG shapes—circles, rectangles, lines, and a path—arranged on a 960×500 canvas to show basic coordinate placement, fill, and stroke styling. The code uses raw inline SVG elements within an HTML page, with no external JavaScript libraries or data sources. It illustrates how attributes like `cx`, `cy`, `r`, `x`, `y`, `width`, `height`, and `d` control geometry, while `fill`, `stroke`, and `stroke-width` determine appearance. The composition includes overlapping circles, a bordered rectangle, a diagonal line, and a triangle, all rendered directly in the browser via the SVG API.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes