Menu Home

use

osbo.com | SVG | Elements | use

The use SVG element specifies a reference to another element, a copy of which is rendered in place of the use element.

Syntax

Attributes

height

Specifies the height of the element.

This only has an effect if the referenced element defines a viewport.

Value
auto | <length-percentage>
Default
auto

href

Specifies a Uniform Resource Locator (URL) reference to the element.

Value
<url>
Default
(none)

width

Specifies the width of the element.

This only has an effect if the referenced element defines a viewport.

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>

href

<url>

width

auto

<length-percentage>

x

<length-percentage>

y

<length-percentage>

Internal

defs

desc

g

metadata

svg

switch

symbol

title

unknown

External

World Wide Web Consortium (W3C)