CARVIEW |
Select Language
HTTP/2 200
content-type: text/html
x-guploader-uploadid: AAwnv3Im7ROeJuXCFcih_FrrFFkYMYBVIZjb6gJp-ddBRX4BBoLRYKqcKmqu9b2eWAvWVbxw
cache-control: public, max-age=3600
expires: Wed, 08 Oct 2025 07:12:44 GMT
last-modified: Wed, 08 Oct 2025 01:14:09 GMT
etag: W/"8becba1130097341cf2b3d59eaf41162"
x-goog-generation: 1759886049632012
x-goog-metageneration: 1
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 192471
x-goog-meta-goog-reserved-file-mtime: 1759884225
x-goog-hash: crc32c=Ep5LIw==, md5=i+y6ETAJc0HPKz1Z6vQRYg==
x-goog-storage-class: STANDARD
accept-ranges: none
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
alt-svc: clear
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
strict-transport-security: max-age=63072000
content-security-policy: default-src 'self'; script-src 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; script-src-elem 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; style-src 'report-sample' 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' developer.allizom.org bcd.developer.allizom.org bcd.developer.mozilla.org updates.developer.allizom.org updates.developer.mozilla.org https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://incoming.telemetry.mozilla.org https://observatory-api.mdn.allizom.net https://observatory-api.mdn.mozilla.net https://api.github.com/search/issues stats.g.doubleclick.net https://api.stripe.com; font-src 'self'; frame-src 'self' interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net mdn.github.io live-samples.mdn.mozilla.net live-samples.mdn.allizom.net *.mdnplay.dev *.mdnyalp.dev *.play.test.mdn.allizom.net https://v2.scrimba.com https://scrimba.com jsfiddle.net www.youtube-nocookie.com codepen.io survey.alchemer.com https://js.stripe.com; img-src 'self' data: *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com developer.mozilla.org mdn.dev interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net wikipedia.org upload.wikimedia.org https://mdn.github.io/shared-assets/ https://mdn.dev/ https://*.google-analytics.com https://*.googletagmanager.com www.gstatic.com; manifest-src 'self'; media-src 'self' archive.org videos.cdn.mozilla.net https://mdn.github.io/shared-assets/; child-src 'self'; worker-src 'self';
x-frame-options: DENY
origin-trial: AxVILwizhbMjxFeHOn1P3R8niO1RJY/smaK4B4d1rLzc1gTaxtXMSaTi+FoigYgCw40uFRDwFcEAeqDR+vVLOW4AAABfeyJvcmlnaW4iOiJodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZyIsImZlYXR1cmUiOiJQcml2YXRlQXR0cmlidXRpb25WMiIsImV4cGlyeSI6MTc0MjA3OTYwMH0=
x-cloud-trace-context: 1f7b0a2f3aa722d00150798ace4a50d9
date: Wed, 08 Oct 2025 06:12:45 GMT
server: Google Frontend
via: 1.1 google
vary: Accept-Encoding
content-encoding: gzip
x-cache: miss
<metadata> - SVG | MDN
Toggle sidebar
>
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
<metadata>
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
<metadata>
は SVG の要素で、この要素は SVG コンテンツにメタデータを追加します。メタデータはデータに関する構造化された情報です。<metadata>
のコンテンツは他の XML 名前空間の要素、例えば RDF、FOAF などでなければなりません。
使用可能な場所
カテゴリー | 説明的要素 |
---|---|
許可されている内容 | あらゆる要素や文字データ |
DOM インターフェイス
この要素は SVGMetadataElement
インターフェイスを実装しています。
例
html
<svg
width="400"
viewBox="0 0 400 300"
xmlns="https://www.w3.org/2000/svg"
xmlns:xlink="https://www.w3.org/1999/xlink">
<metadata>
<rdf:RDF
xmlns:rdf="https://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:connect="https://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:Description about="#CableN">
<connect:ends rdf:resource="#socket5" />
<connect:ends>Everything</connect:ends>
</rdf:Description>
<rdf:Description about="#Hub">
<connect:ends rdf:resource="#socket1" />
<connect:ends rdf:resource="#socket2" />
<connect:ends rdf:resource="#socket3" />
<connect:ends rdf:resource="#socket4" />
<connect:ends rdf:resource="#socket5" />
</rdf:Description>
</rdf:RDF>
</metadata>
<title>Network</title>
<desc>An example of a computer network based on a hub.</desc>
<style>
svg {
/* Default styles to be inherited */
fill: white;
stroke: black;
}
text {
fill: black;
stroke: none;
}
path {
fill: none;
}
</style>
<!-- Define symbols used in the SVG -->
<defs>
<!-- hubPlug symbol. Used by hub symbol -->
<symbol id="hubPlug">
<desc>A 10BaseT/100baseTX socket</desc>
<path d="M0,10 h5 v-9 h12 v9 h5 v16 h-22 z" />
</symbol>
<!-- hub symbol -->
<symbol id="hub">
<desc>A typical 10BaseT/100BaseTX network hub</desc>
<text x="0" y="15">Hub</text>
<g transform="translate(0 20)">
<rect width="253" height="84" />
<rect width="229" height="44" x="12" y="10" />
<circle fill="red" cx="227" cy="71" r="7" />
<!-- five groups each using the defined socket -->
<g id="sock1et" transform="translate(25 20)">
<title>Socket 1</title>
<use href="#hubPlug" />
</g>
<g id="socket2" transform="translate(70 20)">
<title>Socket 2</title>
<use href="#hubPlug" />
</g>
<g id="socket3" transform="translate(115 20)">
<title>Socket 3</title>
<use href="#hubPlug" />
</g>
<g id="socket4" transform="translate(160 20)">
<title>Socket 4</title>
<use href="#hubPlug" />
</g>
<g id="socket5" transform="translate(205 20)">
<title>Socket 5</title>
<use href="#hubPlug" />
</g>
</g>
</symbol>
<!-- computer symbol -->
<symbol id="computer">
<desc>A common desktop PC</desc>
<g id="monitorStand" transform="translate(40 121)">
<title>Monitor stand</title>
<desc>
One of those cool swivelling monitor stands that sit under the monitor
</desc>
<path d="m0,0 S 10 10 40 12" />
<path d="m80,0 S 70 10 40 12" />
<path d="m0,20 L 10 10 S 40 12 70 10 L 80 20z" />
</g>
<g id="monitor">
<title>Monitor</title>
<desc>A very fancy monitor</desc>
<rect width="160" height="120" />
<rect fill="lightgrey" width="138" height="95" x="11" y="12" />
</g>
<g id="processor" transform="translate(0 142)">
<title>The computer</title>
<desc>A desktop computer - broad flat box style</desc>
<rect width="160" height="60" />
<g id="discDrive" transform="translate(70 8)">
<title>disc drive</title>
<desc>A built-in disc drive</desc>
<rect width="58" height="3" x="12" y="8" />
<rect width="8" height="2" x="12" y="15" />
</g>
<circle cx="135" cy="40" r="5" />
</g>
</symbol>
</defs>
<text x="0" y="15">Network</text>
<!-- Use the hub symbol. -->
<g id="Hub" transform="translate(80 45)">
<title>Hub</title>
<use href="#hub" transform="scale(0.75)" />
</g>
<!-- Use the computer symbol. -->
<g id="ComputerA" transform="translate(20 170)">
<title>Computer A</title>
<use href="#computer" transform="scale(0.5)" />
</g>
<!-- Use the same computer symbol. -->
<g id="ComputerB" transform="translate(300 170)">
<title>Computer B</title>
<use href="#computer" transform="scale(0.5)" />
</g>
<!-- Draw Cable A. -->
<g id="CableA" transform="translate(107 88)">
<title>Cable A</title>
<desc>10BaseT twisted pair cable</desc>
<path d="M0,0c100,140 50,140 -8,160" />
</g>
<!-- Draw Cable B. -->
<g id="CableB" transform="translate(142 88)">
<title>Cable B</title>
<desc>10BaseT twisted pair cable</desc>
<path d="M0,0c100,180 110,160 159,160" />
</g>
<!-- Draw Cable N. -->
<g id="CableN" transform="translate(242 88)">
<title>Cable N</title>
<desc>10BaseT twisted pair cable</desc>
<path d="M0,0c0,-70 20,-50 60,-50" />
</g>
</svg>
仕様書
Specification |
---|
Scalable Vector Graphics (SVG) 2> # MetadataElement> |
ブラウザーの互換性
Loading…