SVG elements can be modified using attributes that specify details about exactly how the element should be handled or rendered. Below is a list of all of the attributes available in SVG along with links to reference documentation to help you learn which elements support them and how they work.
accent-height
accumulate
additive
alignment-baseline
allowReorder
alphabetic
amplitude
arabic-form
ascent
attributeName
attributeType
autoReverse
azimuth
calcMode
cap-height
class
clip
clipPathUnits
clip-path
clip-rule
color
color-interpolation
color-interpolation-filters
color-profile
color-rendering
contentScriptType
contentStyleType
cursor
cx
cy
fill
fill-opacity
fill-rule
filter
filterRes
filterUnits
flood-color
flood-opacity
font-family
font-size
font-size-adjust
font-stretch
font-style
font-variant
font-weight
format
from
fr
fx
fy
g1
g2
glyph-name
glyph-orientation-horizontal
glyph-orientation-vertical
glyphRef
gradientTransform
gradientUnits
marker-end
marker-mid
marker-start
markerHeight
markerUnits
markerWidth
mask
maskContentUnits
maskUnits
mathematical
max
media
method
min
mode
offset
onabort
onactivate
onbegin
onclick
onend
onerror
onfocusin
onfocusout
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onrepeat
onresize
onscroll
onunload
opacity
operator
order
orient
orientation
origin
overflow
overline-position
overline-thickness
panose-1
paint-order
pathLength
patternContentUnits
patternTransform
patternUnits
pointer-events
points
pointsAtX
pointsAtY
pointsAtZ
preserveAlpha
preserveAspectRatio
primitiveUnits
r
radius
refX
refY
rendering-intent
repeatCount
repeatDur
requiredExtensions
requiredFeatures
restart
result
rotate
rx
ry
scale
seed
shape-rendering
slope
spacing
specularConstant
specularExponent
speed
spreadMethod
startOffset
stdDeviation
stemh
stemv
stitchTiles
stop-color
stop-opacity
strikethrough-position
strikethrough-thickness
string
stroke
stroke-dasharray
stroke-dashoffset
stroke-linecap
stroke-linejoin
stroke-miterlimit
stroke-opacity
stroke-width
style
surfaceScale
systemLanguage
tabindex
tableValues
target
targetX
targetY
text-anchor
text-decoration
text-rendering
textLength
to
transform
type
v-alphabetic
v-hanging
v-ideographic
v-mathematical
values
version
vert-adv-y
vert-origin-x
vert-origin-y
viewBox
viewTarget
visibility
x
x-height
x1
x2
xChannelSelector
xlink:actuate
xlink:arcrole
xlink:href
xlink:role
xlink:show
xlink:title
xlink:type
xml:base
xml:lang
xml:space
onbegin
, onend
, onload
, onrepeat
begin
, dur
, end
, min
, max
, restart
, repeatCount
, repeatDur
, fill
calcMode
, values
, keyTimes
, keySplines
, from
, to
, by
, autoReverse
, accelerate
, decelerate
requiredExtensions
, requiredFeatures
, systemLanguage
.
id
, xml:base
, xml:lang
, xml:space
, tabindex
onabort
, onerror
, onresize
, onscroll
, onunload
onactivate
, onclick
, onfocusin
, onfocusout
, onload
, onmousedown
, onmousemove
, onmouseout
, onmouseover
, onmouseup
alignment-baseline
, baseline-shift
, clip
, clip-path
, clip-rule
, color
, color-interpolation
, color-interpolation-filters
, color-profile
, color-rendering
, cursor
, direction
, display
, dominant-baseline
, enable-background
, fill
, fill-opacity
, fill-rule
, filter
, flood-color
, flood-opacity
, font-family
, font-size
, font-size-adjust
, font-stretch
, font-style
, font-variant
, font-weight
, glyph-orientation-horizontal
, glyph-orientation-vertical
, image-rendering
, kerning
, letter-spacing
, lighting-color
, marker-end
, marker-mid
, marker-start
, mask
, opacity
, overflow
, pointer-events
, shape-rendering
, stop-color
, stop-opacity
, stroke
, stroke-dasharray
, stroke-dashoffset
, stroke-linecap
, stroke-linejoin
, stroke-miterlimit
, stroke-opacity
, stroke-width
, text-anchor
, text-decoration
, text-rendering
, unicode-bidi
, visibility
, word-spacing
, writing-mode
type
, tableValues
, slope
, intercept
, amplitude
, exponent
, offset
xlink:href
, xlink:type
, xlink:role
, xlink:arcrole
, xlink:title
, xlink:show
, xlink:actuate
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute