The ><symbol> element is used to define graphical template objects which can be instantiated by a <use> element.
The use of <symbol> elements for graphics that are used multiple times in the same document adds structure and semantics. Documents that are rich in structure may be rendered graphically, as speech, or as Braille, and thus promote accessibility.
heightThis attribute determines the height of the symbol. Value type: <length>|<percentage> ; Default value: auto; Animatable: yespreserveAspectRatioThis attribute defines how the svg fragment must be deformed if it is embedded in a container with a different aspect ratio. Value type: (none| xMinYMin| xMidYMin| xMaxYMin| xMinYMid| xMidYMid| xMaxYMid| xMinYMax| xMidYMax| xMaxYMax) (meet|slice)? ; Default value: xMidYMid meet; Animatable: yesrefXThis attribute determines the x coordinate of the reference point of the symbol. Value type: <length>|<percentage>|left|center|right ; Default value: 0; Animatable: yesrefYThis attribute determines the y coordinate of the reference point of the symbol. Value type: <length>|<percentage>|top|center|bottom ; Default value: 0; Animatable: yesviewBoxThis attribute defines the bound of the SVG viewport for the current symbol. Value type: <list-of-numbers> ; Default value: none; Animatable: yeswidthThis attribute determines the width of the symbol. Value type: <length>|<percentage> ; Default value: auto; Animatable: yesxThis attribute determines the x coordinate of the symbol. Value type: <length>|<percentage> ; Default value: 0; Animatable: yesyThis attribute determines the y coordinate of the symbol. Value type: <length>|<percentage> ; Default value: 0; Animatable: yes
Note: A <symbol> element itself is not meant to be rendered. Only instances of a <symbol> element (i.e., a reference to a <symbol> by a <use> element) are rendered. That means that some browsers could refuse to directly display a <symbol> element even if the CSS display property tells otherwise.