Home Menu

SYMBOL

The symbol element is used to define graphical templates which can be instantiated by a 'use' element but which are not rendered directly.

SYNTAX

<symbol attribute-name="attribute-value"></symbol>
NAME VALUE INITIAL DESCRIPTION
height <length-percentage> | auto auto height of the element
preserveAspectRatio <align> <meetOrSlice>? xMidYMid meet indicates whether or not to force uniform scaling
refX <length> | left | center | right (none) x coordinate of the reference point of the element
refY <length> | top | center | bottom (none) y coordinate of the reference point of the element
viewBox [ <min-x>,? <min-y>,? <width>,? <height> ] (none) rectangle in user space that should be mapped to the bounds of the SVG viewport
width <length-percentage> | auto auto width of the element
x <length-percentage> 0 x coordinate of the element
y <length-percentage> 0 y coordinate of the element

EXAMPLES

HEIGHT

VIEWBOX

WIDTH

X

Y

INTERNAL

defs

desc

g

metadata

svg

switch

title

unknown

use

EXTERNAL

World Wide Web Consortium (W3C)