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
<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>
çµæ
仿§æ¸
| 仿§æ¸ |
|---|
| HTML > # attr-itemtype > |
é¢é£æ å ±
- ä»ã®ã°ãã¼ãã«å±æ§
- ãã¤ã¯ããã¼ã¿ã«é¢é£ããä»ã®ã°ãã¼ãã«å±æ§: