CARVIEW |
Select Language
HTTP/2 200
content-type: text/html
x-guploader-uploadid: AAwnv3L5r7zH8sco95bO9eEpTvbXBagKR7wKjeD-44Z4m0LsVlboue4G6l-sKmCssgPWTCxK
cache-control: public, max-age=3600
expires: Wed, 08 Oct 2025 04:15:44 GMT
last-modified: Wed, 08 Oct 2025 01:13:45 GMT
etag: W/"78453a89cdea2331f8e8f8de3a3b101d"
x-goog-generation: 1759886025736363
x-goog-metageneration: 1
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 183900
x-goog-meta-goog-reserved-file-mtime: 1759884225
x-goog-hash: crc32c=XVUg1A==, md5=eEU6ic3qIzH46PjeOjsQHQ==
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: c6c42dc4583e0a52bb28b1027a3fcfa1;o=1
date: Wed, 08 Oct 2025 03:15:44 GMT
server: Google Frontend
via: 1.1 google
vary: Accept-Encoding
content-encoding: gzip
x-cache: miss
HTML itemtype グローバル属性 - HTML | MDN
Toggle sidebar
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
HTML itemtype グローバル属性
グローバル属性の itemtype
は、データ構造の中で itemprop
(アイテムのプロパティ)を定義するのに使われる語彙の URL を指定します。
itemscope
は itemtype
が有効になるデータ構造の語彙の対象範囲を設定するために使用します。
Google などの主要な検索エンジンは、構造化データのために schema.org の語彙に対応しています。この語彙は標準の型名とプロパティ名の組み合わせを定義しています。例えば、 MusicEvent
はコンサートを示し、 startDate
および location
プロパティでコンサートの主要な詳細を示します。この場合、 MusicEvent
の URL を itemtype
に使用し、 startDate
や location
は MusicEvent
が定義する itemprop
となります。
メモ:
itemtype
属性についての詳細は、 https://schema.org/Thing をご覧ください
- itemtype 属性には値が必要で、値は大文字小文字を区別する一意のトークンを順不同で並べたもので、それぞれが妥当な絶対 URL であり、すべてが同じ語彙を使用して定義する必要があります。属性の値は 1 つ以上のトークンを含む必要があります。
- アイテム型はすべて、(schema.org などの)適用可能な仕様書で定義された型であり、すべて同じ語彙を使用して定義する必要があります。
- itemtype 属性は itemscope 属性が指定されている要素の中でのみ指定できます。
- itemid 属性は、 itemscope 属性と itemtype 属性の両方を指定された要素でのみ指定することができます。これらは itemscope 属性を持つ要素で、語彙の仕様によって定められるとおり、その itemtype がアイテムのグローバル識別子に対応しない語彙を指定している場合にのみ指定する必要があります。
- グローバル識別子の正確な意味は、語彙の仕様によって決定されます。これは、同じグローバル識別子をもつ複数のアイテムが存在することが許可されるかどうか(同じページか異なるページ上かどうか)、そしてその語彙に対する処理規則が同じ ID をもつ複数のアイテムの場合の取り扱いに関するものを定義するのはそのような仕様次第です。
例
>製品の構造化データの表現
この例では、以下のようにマイクロデータ属性を使用して、製品の構造化データを表現しています。
itemscope | itemtype | Product (https://schema.org/Product) | |
itemprop | name | Executive Anvil | |
itemprop | image | https://pixabay.com/static/uploads/photo/2015/09/05/18/15/suitcase-924605_960_720.png | |
itemprop | description | Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height. | |
itemprop | mpn | 925872 | |
itemprop | brand [Thing] | ||
itemprop | name | ACME | |
itemscope | itemprop[itemtype] | aggregateRating[AggregateRating] | |
itemprop | ratingValue | 4.4 | |
itemprop | reviewCount | 89 | |
itemprop | offers [Offer] | https://schema.org/Offer | |
itemprop | priceCurrency | USD | |
itemprop | price | 119.99 | |
itemprop | priceValidUntil | 2020-11-05 | |
itemprop | itemCondition | https://schema.org/UsedCondition | |
itemprop | availability | https://schema.org/InStock | |
itemscope | itemprop[itemtype] | seller [Organization] | https://schema.org/Organization |
itemprop | name | Executive Objects |
メモ: HTML からマイクロデータを抽出するのに手軽なツールとして、 Google の構造化データテストツールがあります。こちらの HTML で試してみてください。
HTML
html
<div itemscope itemtype="https://schema.org/Product">
<span itemprop="brand">ACME<br /></span>
<span itemprop="name">Executive Anvil<br /></span>
<img
itemprop="image"
src="https://pixabay.com/static/uploads/photo/2015/09/05/18/15/suitcase-924605_960_720.png"
width="50"
height="50"
alt="Executive Anvil logo" /><br />
<span itemprop="description">
Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the
business traveler looking for something to drop from a height.
<br />
</span>
Product #: <span itemprop="mpn">925872<br /></span>
<span
itemprop="aggregateRating"
itemscope
itemtype="https://schema.org/AggregateRating">
Rating: <span itemprop="ratingValue">4.4</span> stars, based on
<span itemprop="reviewCount">89 </span> reviews
</span>
<p>
<span itemprop="offers" itemscope itemtype="https://schema.org/Offer">
Regular price: $179.99<br />
<meta itemprop="priceCurrency" content="USD" />
<span itemprop="price">Sale price: $119.99<br /></span>
(Sale ends
<time itemprop="priceValidUntil" datetime="2020-11-05">5 November!</time>)
<br />
Available from:
<span
itemprop="seller"
itemscope
itemtype="https://schema.org/Organization">
<span itemprop="name">Executive Objects<br /></span>
</span>
Condition:
<link
itemprop="itemCondition"
href="https://schema.org/UsedCondition" />Previously owned, in excellent
condition<br />
<link itemprop="availability" href="https://schema.org/InStock" />In
stock! Order now!
</span>
</p>
</div>
結果
仕様書
Specification |
---|
HTML> # attr-itemtype> |