Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

symbol

Description

The symbol element for SVG specifies graphical templates which can be instantiated by a use element but which are not rendered directly.

Syntax

Attributes

height

Specifies the height of the element.

Value
auto | <length-percentage>
Default
auto

preserveAspectRatio

Specifies whether or not to force uniform scaling.

Value
<align> <meetOrSlice>?
Default
xMidYMid meet

refX

Specifies the x-coordinate of the reference point.

Value
<length> | left | center | right
Default
(none)

refY

Specifies the y-coordinate of the reference point.

Value
<length> | top | center | bottom
Default
(none)

viewBox

Specifies a rectangle in user space.

A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.

Value
[ <min-x>,? <min-y>,? <width>,? <height> ]
Default
(none)

width

Specifies the width of the element.

Value
auto | <length-percentage>
Default
auto

x

Specifies the x-coordinate of the element.

Value
<length-percentage>
Default
0

y

Specifies the y-coordinate of the element.

Value
<length-percentage>
Default
0

Examples

height

auto

<length-percentage>

preserveAspectRatio

<align>

<meetOrSlice>

refX

center

left

<length>

right

refY

bottom

center

<length>

top

viewBox

<height>

<min-x>

<min-y>

<width>

width

auto

<length-percentage>

x

<length-percentage>

y

<length-percentage>

defs

desc

g

metadata

svg

switch

title

unknown

use

World Wide Web Consortium (W3C)

HomeMenu