Introduction

Scalable Vector Graphics (SVG) are XML-based markup language to create two-dimensional vector graphics (MDN).

You can create SVG images using tools like Inkscape or Gravit, or using your trusty text editor (which will be explored in depth here).

Example

As an XML dialect, SVG must always bind the namespaces correctly. Generally, you would put xmlns="http://www.w3.org/2000/svg" on the root <svg> element.

Also, notice that later elements are rendered on top of previous elements.

| LIVE PREVIEW
SVG

References