codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML SVG

HTML SVG

Scalable vector graphics.

SVG shapes are elements, so they stay sharp at any size and can be styled with CSS.

Example code

<svg width='260' height='120'>
  <rect x='10' y='10' width='100' height='60' fill='#1b998b'/>
  <circle cx='190' cy='60' r='40' fill='orange'/>
  <text x='10' y='105'>SVG</text>
</svg>'

Run this code in the online editor

← HTML canvasHTML YouTube →