Référence des attributs SVG
Les éléments SVG peuvent être modifiés en utilisant des attributs qui spécifient comment les éléments doivent être traités ou présentés.
Ci-dessous, la liste de tous les attributs disponibles en SVG ainsi que des liens vers leur documentation pour vous aider à apprendre sur quels éléments ils s'appliquent et comment ils fonctionnent.
Attributs SVG de A à Z
A
B
C
D
E
F
fillfill-opacityfill-rulefilter (en-US)filterRes (en-US)filterUnits (en-US)flood-color (en-US)flood-opacity (en-US)font-family (en-US)font-size (en-US)font-size-adjust (en-US)font-stretch (en-US)font-style (en-US)font-variant (en-US)font-weight (en-US)formatfrom (en-US)fr (en-US)fx (en-US)fy (en-US)
G
H
I
K
L
M
N
O
P
R
S
scale (en-US)seedshape-rendering (en-US)slope (en-US)spacing (en-US)specularConstant (en-US)specularExponent (en-US)speedspreadMethod (en-US)startOffset (en-US)stdDeviation (en-US)stemh (en-US)stemv (en-US)stitchTiles (en-US)stop-color (en-US)stop-opacity (en-US)strikethrough-position (en-US)strikethrough-thickness (en-US)string (en-US)strokestroke-dasharraystroke-dashoffsetstroke-linecapstroke-linejoinstroke-miterlimitstroke-opacitystroke-widthstylesurfaceScale (en-US)systemLanguage (en-US)
T
U
V
W
X
Y
Z
Attributs SVG par catégorie
Attributs Génériques
Attributs de base
id (en-US), lang (en-US), tabindex (en-US), xml:base (en-US), xml:lang (en-US), xml:space (en-US)
Attributs de style
class (en-US), style
Attributs de traitement conditionnel
externalResourcesRequired, requiredExtensions, requiredFeatures (en-US), systemLanguage (en-US).
Attributs XLink
Attributs de présentation
Note : Tous les attributs SVG de présentation peuvent être utilisés comme propriété CSS.
alignment-baseline (en-US), baseline-shift (en-US), clip (en-US), clip-path, clip-rule (en-US), color, color-interpolation (en-US), color-interpolation-filters (en-US), color-profile (en-US), color-rendering, cursor (en-US), direction (en-US), display (en-US), dominant-baseline (en-US), enable-background (en-US), fill, fill-opacity, fill-rule, filter (en-US), flood-color (en-US), flood-opacity (en-US), font-family (en-US), font-size (en-US), font-size-adjust (en-US), font-stretch (en-US), font-style (en-US), font-variant (en-US), font-weight (en-US), glyph-orientation-horizontal (en-US), glyph-orientation-vertical (en-US), image-rendering (en-US), kerning (en-US), letter-spacing (en-US), lighting-color (en-US), marker-end (en-US), marker-mid (en-US), marker-start (en-US), mask, opacity (en-US), overflow (en-US), pointer-events (en-US), shape-rendering (en-US), stop-color (en-US), stop-opacity (en-US), stroke, stroke-dasharray, stroke-dashoffset, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-opacity, stroke-width, text-anchor, transform, text-decoration (en-US), text-rendering (en-US), unicode-bidi (en-US), vector-effect (en-US), visibility (en-US), word-spacing (en-US), writing-mode (en-US)Attributs de filtres
Attributs de primitives de filtre
height, result (en-US), width, x, y (en-US)
Attributs de fonction de transfert
type (en-US), tableValues (en-US), slope (en-US), intercept (en-US), amplitude (en-US), exponent (en-US), offsetAttributs d'animation
Animation cible
attributeType (en-US), attributeName (en-US)
Timing de l'animation
begin (en-US), dur (en-US), end (en-US), min (en-US), max (en-US), restart (en-US), repeatCount (en-US), repeatDur (en-US), fill
Valeurs de l'animation
calcMode (en-US), values (en-US), keyTimes (en-US), keySplines (en-US), from (en-US), to (en-US), by (en-US), autoReverse, accelerate, decelerate
Addition de l'animation
additive (en-US), accumulate (en-US)Attributs d'événement
Événements d'animation
onbegin, onend, onrepeat
Événements du document
onabort, onerror, onresize, onscroll, onunload
Événements globaux
oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplaying, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwaiting
- Événement graphiques
onactivate, onfocusin, onfocusout