SVG element reference
=====================

SVG drawings and images are created using a wide array of elements which are dedicated to the construction, drawing, and layout of vector images and diagrams. Here you'll find reference documentation for each of the SVG elements.

SVG elements A to Z
-------------------

### A

* `<a>`
* `<animate>`
* `<animateMotion>`
* `<animateTransform>`
### C

* `<circle>`
* `<clipPath>`
### D

* `<defs>`
* `<desc>`
### E

* `<ellipse>`
### F

* `<feBlend>`
* `<feColorMatrix>`
* `<feComponentTransfer>`
* `<feComposite>`
* `<feConvolveMatrix>`
* `<feDiffuseLighting>`
* `<feDisplacementMap>`
* `<feDistantLight>`
* `<feDropShadow>`
* `<feFlood>`
* `<feFuncA>`
* `<feFuncB>`
* `<feFuncG>`
* `<feFuncR>`
* `<feGaussianBlur>`
* `<feImage>`
* `<feMerge>`
* `<feMergeNode>`
* `<feMorphology>`
* `<feOffset>`
* `<fePointLight>`
* `<feSpecularLighting>`
* `<feSpotLight>`
* `<feTile>`
* `<feTurbulence>`
* `<filter>`
* `<foreignObject>`
### G

* `<g>`
### H

* `<hatch>`
* `<hatchpath>`
### I

* `<image>`
### L

* `<line>`
* `<linearGradient>`
### M

* `<marker>`
* `<mask>`
* `<metadata>`
* `<mpath>`
### P

* `<path>`
* `<pattern>`
* `<polygon>`
* `<polyline>`
### R

* `<radialGradient>`
* `<rect>`
### S

* `<script>`
* `<set>`
* `<stop>`
* `<style>`
* `<svg>`
* `<switch>`
* `<symbol>`
### T

* `<text>`
* `<textPath>`
* `<title>`
* `<tspan>`
### U

* `<use>`
### V

* `<view>`

**Note:** The SVG 2 spec requires that any unknown elements be treated as `<g>` for the purpose of rendering.

SVG elements by category
------------------------

### Animation elements

`<animate>`, `<animateMotion>`, `<animateTransform>`, `<mpath>`, `<set>`### Basic shapes

`<circle>`, `<ellipse>`, `<line>`, `<polygon>`, `<polyline>`, `<rect>`### Container elements

`<a>`, `<defs>`, `<g>`, `<marker>`, `<mask>`, `<missing-glyph>`, `<pattern>`, `<svg>`, `<switch>`, `<symbol>`### Descriptive elements

`<desc>`, `<metadata>`, `<title>`### Filter primitive elements

`<feBlend>`, `<feColorMatrix>`, `<feComponentTransfer>`, `<feComposite>`, `<feConvolveMatrix>`, `<feDiffuseLighting>`, `<feDisplacementMap>`, `<feDropShadow>`, `<feFlood>`, `<feFuncA>`, `<feFuncB>`, `<feFuncG>`, `<feFuncR>`, `<feGaussianBlur>`, `<feImage>`, `<feMerge>`, `<feMergeNode>`, `<feMorphology>`, `<feOffset>`, `<feSpecularLighting>`, `<feTile>`, `<feTurbulence>`### Font elements

`<font>`, `<font-face>`, `<font-face-format>`, `<font-face-name>`, `<font-face-src>`, `<font-face-uri>`, `<hkern>`, `<vkern>`### Gradient elements

`<linearGradient>`, `<radialGradient>`, `<stop>`### Graphics elements

`<circle>`, `<ellipse>`, `<image>`, `<line>`, `<path>`, `<polygon>`, `<polyline>`, `<rect>`, `<text>`, `<use>`### Graphics referencing elements

`<use>`### Light source elements

`<feDistantLight>`, `<fePointLight>`, `<feSpotLight>`### Never-rendered elements

`<clipPath>`, `<defs>`, `<hatch>`, `<linearGradient>`, `<marker>`, `<mask>`, `<metadata>`, `<pattern>`, `<radialGradient>`, `<script>`, `<style>`, `<symbol>`, `<title>`### Paint server elements

`<hatch>`, `<linearGradient>`, `<pattern>`, `<radialGradient>`, `<solidcolor>`### Renderable elements

`<a>`, `<circle>`, `<ellipse>`, `<foreignObject>`, `<g>`, `<image>`, `<line>`, `<path>`, `<polygon>`, `<polyline>`, `<rect>`, `<svg>`, `<switch>`, `<symbol>`, `<text>`, `<textPath>`, `<tspan>`, `<use>`

**Note:** The SVG 2 spec requires that any unknown elements be treated as `<g>` for the purpose of rendering.

### Shape elements

`<circle>`, `<ellipse>`, `<line>`, `<path>`, `<polygon>`, `<polyline>`, `<rect>`### Structural elements

`<defs>`, `<g>`, `<svg>`, `<symbol>`, `<use>`### Text content elements

`<glyph>`, `<glyphRef>`, `<textPath>`, `<text>`, `<tref>`, `<tspan>`### Text content child elements

`<textPath>`, `<tref>`, `<tspan>`### Uncategorized elements

`<clipPath>`, `<cursor>`, `<filter>`, `<foreignObject>`, `<hatchpath>`, `<script>`, `<style>`, `<view>`Obsolete and deprecated elements
--------------------------------

**Warning:** These are old SVG elements which are deprecated and should not be used. **You should never use them in new projects, and should replace them in old projects as soon as you can.** They are listed here for informational purposes only.

### C

`<cursor>`### F

`<font>`, `<font-face>`, `<font-face-format>`, `<font-face-name>`, `<font-face-src>`, `<font-face-uri>`### G

`<glyph>`, `<glyphRef>`### H

`<hkern>`### M

`<missing-glyph>`### T

`<tref>`### V

`<vkern>`See also
--------

* SVG attribute reference
* SVG Tutorial
* SVG interface reference