metadata element | SVGMetadataElement object
Contains information that is associated with SVG metadata.
![]() ![]() |
DOM Information
Inheritance Hierarchy
Members
The SVGMetadataElement object has these types of members:
Events
The SVGMetadataElement object has these events.
| Event | Description |
|---|---|
| onload |
Occurs when the browser has fully parsed the element and all of its descendants. |
Properties
The SVGMetadataElement object has these properties.
| Property | Description |
|---|---|
|
Determines if an element can acquire keyboard focus (that is, receive keyboard events) and be a target for field-to-field navigation actions (such as when a user presses the Tab key). | |
|
Gets the nearest ancestor svg element. | |
|
Gets the element that established the current viewport. | |
|
Gets or sets the |
Standards information
- Scalable Vector Graphics: Metadata, Section 21.4.1
Remarks
You should specify metadata, which you can include with SVG content, within metadata elements. The contents of a metadata element should be children elements from other XML namespaces that are expressed in a manner that conforms with the Namespaces in XML Recommendation.
You should provide a metadata child element to the outermost svg element within a stand-alone SVG document. The metadata child element to an svg element identifies document-level metadata.
Examples
The following code example demonstrates how you can include metadata in an SVG document. This example uses the Dublin Core version 1.1 schema. (You can also use other XML-compatible metadata languages, including ones that are not based on RDF.)
<?xml version="1.0" standalone="yes"?> <svg width="4in" height="3in" version="1.1" xmlns = 'http://www.w3.org/2000/svg'> <desc xmlns:myfoo="http://example.org/myfoo"> <myfoo:title>This is a financial report</myfoo:title> <myfoo:descr>The global description uses markup from the <myfoo:emph>myfoo</myfoo:emph> namespace.</myfoo:descr> <myfoo:scene><myfoo:what>widget $growth</myfoo:what> <myfoo:contains>$three $graph-bar</myfoo:contains> <myfoo:when>1998 $through 2000</myfoo:when> </myfoo:scene> </desc> <metadata> <rdf:RDF xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs = "http://www.w3.org/2000/01/rdf-schema#" xmlns:dc = "http://purl.org/dc/elements/1.1/" > <rdf:Description about="http://example.org/myfoo" dc:title="MyFoo Financial Report" dc:description="$three $bar $thousands $dollars $from 1998 $through 2000" dc:publisher="Example Organization" dc:date="2000-04-11" dc:format="image/svg+xml" dc:language="en" > <dc:creator> <rdf:Bag> <rdf:li>Irving Bird</rdf:li> <rdf:li>Mary Lambert</rdf:li> </rdf:Bag> </dc:creator> </rdf:Description> </rdf:RDF> </metadata> </svg>
See also

