Metadata

These elements add metadata/description to your elements.

SVG elements

<metadata>

Adds metadata to an SVG content. The children of <metadata> should be elements from other XML namespaces such as RDF, FOAF, etc. (MDN).

<svg xmlns="http://www.w3.org/2000/svg">
  <!-- sample of metadata in RDF -->
  <!-- https://developer.mozilla.org/en-US/docs/Web/SVG/Element/metadata -->
  <metadata>
    <rdf:RDF
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:connect="http://www.w3.org/1999/08/29-svg-connections-in-RDF#"
    >
      <rdf:Description about="#CableA">
        <connect:ends rdf:resource="#socket1" />
        <connect:ends rdf:resource="#ComputerA" />
      </rdf:Description>
      <rdf:Description about="#CableB">
        <connect:ends rdf:resource="#socket2" />
        <connect:ends rdf:resource="#ComputerB" />
      </rdf:Description>
    </rdf:RDF>
  </metadata>
  <!-- other metadata -->
  <title>Network</title>
  <desc>An example of a computer network based on a hub.</desc>
  ...
</svg>

<title>

Provides an accessible, short-text description of any SVG elements. (Browsers usually display them as a tooltip when hovered.)

| LIVE PREVIEW
I'm a circle I'm a square

<desc>

Provides an accessible, long-text description of any SVG elements. (This text not rendered.)

| LIVE PREVIEW
Long description

References