Definitions - defs
This is a container element for other referenced elements (for example, shapes or gradients). It should be the first sub-element of svg
. Referenced elements will have the id attribute defined. These objects are rendered only if they are referenced.
Example:
Copy
<defs>
<rect id="Rect1" x="1" y="1" width="8" height="8" />
</defs>