# metadata
The metadata
SVG element adds metadata to SVG content. Metadata is structured information about data. The contents of metadata
should be elements from other XML namespaces such as RDF, FOAF, etc.
None
This element implements the SVGMetadataElement interface.
Usually, this element is created with:
const metadata = parentElement.add('metadata')
It's possible to create it as a disconnected element with gySVG('metadata')
and attach it to the SVG document with .attachTo()
.
More info: mdn (opens new window) | w3c (opens new window)
- Parent elements: a | animate | animateMotion | animateTransform | circle | clipPath | defs | discard | ellipse | feDiffuseLighting | feSpecularLighting | filter | g | image | line | linearGradient | marker | mask | mpath | path | pattern | polygon | polyline | radialGradient | rect | set | svg | switch | symbol | text | textPath | tspan | use | view.