SVG Reference Manual
More elements and attributes are defined in the SVG specification.
Common SVG attributes:
id: The unique identifier of an element.class: The class name of an element, used for CSS styling.style: The inline style of an element.transform: The transform applied to an element.x,y: The position of an element.width,height: The size of an element.fill: Fill color.stroke: Stroke color.stroke-width: Stroke width.opacity: Opacity.visibility: The visibility of an element.
The list of SVG elements is as follows:
| Element | Description | property |
|---|---|---|
|
Defines the root element of an SVG document | width |
height
viewBox
preserveAspectRatio
xmlns
... |
| | Defines a hyperlink | xlink:href
target
... | | | Defines an alternate glyph | glyphRef
format
rotate
dx
dy
... | | | Defines the one used for the alternate glyph set | (none) | | | Defines the alternate glyph of | glyphRef
format
... | | | Defines an animation | attributeName
from
to
dur
repeatCount
fill
... | | | Defines a color animation | attributeName
from
to
dur
repeatCount
fill
... | | | Defines a path animation | path
dur
repeatCount
... | | | Defines a transform animation | attributeName
type
from
to
dur
... | | | Defines a circle | cx
cy
r
fill
stroke
stroke-width
... | | | Defines a clipping path | clipPathUnits
(none) | | | Defines a color profile | (none) | | | Defines the mouse cursor | x
y
width
height
xlink:href
... | | | Defines a reusable element | (none) | | | Provides a description for an SVG element | (none) | | | Specifies the elements to discard | (none) | | | Defines an ellipse | cx
cy
rx
ry
fill
stroke
stroke-width
... | | | Defines image blending | in
in2
mode
... | | | Defines a color matrix | in
type
values
... | | | Defines the transfer function of color/Alpha components | (none) | | | Defines image composition | in
in2
operator
... | | | Defines a convolution matrix | in
order
kernelMatrix
... | | | Defines diffuse lighting | in
surfaceScale
diffuseConstant
... | | | Defines a displacement map | in
in2
scale
... | | | Defines remote lighting | azimuth
elevation
... | | | Defines a drop shadow | dx
dy
stdDeviation
... | | | Defines the color used for a graphic element | flood-color
flood-opacity
... | | | Defines a curve for adjusting the Alpha channel | type
tableValues
slope
... | | | Defines a curve for adjusting an image | type
tableValues
slope
... | | | Defines a curve for adjusting an image | type
tableValues
slope
... | | | Defines a curve for adjusting an image | type
tableValues
slope
... | | | Defines a Gaussian blur effect | stdDeviation
... | | | Defines an image to embed | href
result
... | | | Defines a filter primitive for merging images | (none) | | | Defines the input image for merging images | (none) | | | Defines a filter for changing the shape of an input image | operator
radius
... | | | Defines the offset of an input image | dx
dy
... | | | Defines a point light | x
y
z
... | | | Defines a specular highlight effect | in
surfaceScale
specularConstant
... | | | Defines a spotlight | x
y
z
pointsAtX
pointsAtY
pointsAtZ
... | | | Defines a repeated input image | (none) | | | Defines a turbulence image | baseFrequency
numOctaves
... | | | Defines a filter effect | filterUnits
primitiveUnits
x
y
width
height
... | | | Defines a font resource | horiz-origin-x
horiz-origin-y
horiz-adv-x
vert-origin-x
vert-origin-y
vert-adv-y
... | | | Defines font attributes | font-family
font-style
font-variant
font-weight
font-stretch
... | | | Defines the font file format | (none) | | | Defines the font name | (none) | | | Defines the location of the font file | (none) | | | Defines the location of the font file | (none) | | | Defines other XML namespaces in an SVG file | |