Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The xlink:href
attribute defines a reference to a resource as a reference IRI. The exact meaning of that link depends on the context of each element using it.
Note: SVG 2 removed the need for the xlink
namespace, so instead of xlink:href
you should use href
. If you need to support earlier browser versions, the deprecated xlink:href
attribute can be used as a fallback in addition to the href
attribute, e.g. <use href="some-id" xlink:href="some-id" x="5" y="5" />
.
You can use this attribute with the following SVG elements: