A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/svg/elements/use below:

use ยท WebPlatform Docs

use Overview Table
DOM Interface
SVGElement
Examples

Here, the use element is used to create three instances of a rectangle defined in a defs tag.



<!DOCTYPE html>
<html>
    <head></head>
    <body>
        <svg>
            <defs>
                <rect id="myRect" width="50" height="50" />
            </defs>
            <use x="50" y="50" fill="red" xlink:href="#myRect" />
            <use x="75" y="75" fill="green" xlink:href="#myRect" />
            <use x="100" y="100" fill="blue" xlink:href="#myRect" />
        </svg>
    </body>
</html>

[View live example](http://code.webplatform.org/gist/9492902)

Notes Remarks

Note: In addition to the attributes, properties, events, methods, and styles listed above, SVG elements also inherent core HTML attributes, properties, events, methods, and styles.

For more information, see the SVG specification.

Standards information Members

The SVGUseElement object has these events:

The SVGUseElement object has these methods:

The SVGUseElement object has these properties:

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4