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

use

Description

The use element for SVG 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>