Skip to main content
100%

Osnove SVG

✓ Published0🌍 Public
MMiha Tomšič
Last edited Sep 5, 2023
Created on Sep 5, 2023
Forked from HTML Starter

This example demonstrates basic SVG shapes by rendering circles, rectangles, lines, and paths directly in an HTML document. The code uses inline SVG elements—`<circle>`, `<rect>`, `<line>`, and `<path>`—with explicit attributes for position, size, and color. A red circle, a purple bordered rectangle, a thick green line, and a blue triangular path are drawn on a 500×500 canvas. Styling is applied via presentation attributes like `fill`, `stroke`, and `stroke-width`. The visualization introduces core SVG syntax without any JavaScript libraries or external data sources, relying purely on static markup.

AI-generated description

Demonstracija oblik, ki jih ponuja SVG.

MIT Licensed

Similar vizzes