itemscope
ã¯è«çã°ãã¼ãã«å±æ§ã§ãé¢é£ä»ããããã¡ã¿ãã¼ã¿ã®ã¹ã³ã¼ããå®ç¾©ãã¾ãã itemscope
屿§ãè¦ç´ ã«æå®ããã¨ãè¦ç´ ã«é¢é£ä»ããããæ°ã
ã®ååã¨å¤ã®çµã¿åãããæã¤æ°ããã¢ã¤ãã ã使ãã¾ãã
é¢é£ãã屿§ã§ãã itemtype
ã¯ãã¢ã¤ãã ããã³ãã®ããããã£ã®ã³ã³ããã¹ããè¨è¿°ããèªå½ï¼schema.org ãªã©ï¼ã®æå¹ãª URL ãæå®ããããã«ä½¿ç¨ããã¾ãã以ä¸ã®ããããã®ä¾ã§ã¯ã schema.org ããã®èªå½ã使ç¨ãã¦ãã¾ãã
ãããã HTML è¦ç´ ã« itemscope
屿§ãè¨å®ãããã¨ãã§ãã¾ãã itemscope
è¦ç´ ã itemtype
ãæããªãå ´åã¯ãé¢é£ä»ãããã itemref
ãæã¤å¿
è¦ãããã¾ãã
ã¡ã¢: itemtype
屿§ã«ã¤ãã¦ã®è©³ç´°ã¯ã https://schema.org/Thing ãã覧ãã ãã
ããè¦ç´ ã« itemscope
屿§ãæå®ããã¨ãæ°ããã¢ã¤ãã ã使ããã¾ããã¢ã¤ãã ã¯ååã¨å¤ã®çµã®ã°ã«ã¼ãããæ§æããã¾ãã itemscope
屿§ã¨ itemtype
屿§ãæã¤è¦ç´ ã§ã¯ã id
屿§ãæå®ãããã¨ãã§ãã¾ãã id
屿§ã使ç¨ããã¨ãæ°ããã¢ã¤ãã ã«ã°ãã¼ãã«ãªèå¥åãè¨å®ãããã¨ãã§ãã¾ããã°ãã¼ãã«ãªèå¥åã«ãã£ã¦ããã®ã¢ã¤ãã ã¯ã¦ã§ãä¸ã®ãã¼ã¸ã§è¦ãããä»ã®ã¢ã¤ãã ã«é¢é£ä»ãããã¨ãã§ãã¾ãã
以ä¸ã®ä¾ã§ã¯ã itemtype
ã "http://schema.org/Movie" ã«è¨å®ãã 3 ã¤ã®é¢é£ãã itemprop
屿§ãå®ç¾©ãã¾ãã
<div itemscope itemtype="https://schema.org/Movie">
<h1 itemprop="name">Avatar</h1>
<span>
Director: <span itemprop="director">James Cameron</span> (born August 16,
1954)
</span>
<span itemprop="genre">Science fiction</span>
<a href="https://youtu.be/0AY1XIkX7bY" itemprop="trailer">Trailer</a>
</div>
ã¬ã·ãã®æ§é åãã¼ã¿ã®è¡¨ç¾
以ä¸ã®ä¾ã«ã¯ 4 ã¤ã® itemscope
屿§ãããã¾ããããããã® itemscope
屿§ã¯ã対å¿ãã itemtype
屿§ã®ã¹ã³ã¼ããè¨å®ãã¦ãã¾ãã以ä¸ã®ä¾ã«ãã Recipe
, AggregateRating
, NutritionInformation
ã® itemtype
ã¯ãã¬ã·ãã®ããã® schema.org æ§é åãã¼ã¿ã®ä¸é¨ã§ãããæåã® itemtype
, http://schema.org/Recipe
ã¨ãã¦å®ç¾©ããã¦ãã¾ãã
ã¡ã¢: æè»½ã« HTML ãããã¤ã¯ããã¼ã¿ãæ½åºããã«ã¯ã Google ã®ãªãããªã¶ã«ããã¹ããã¼ã«ã便å©ã§ããä¸ã® HTML ã§è©¦ãã¦ã¿ã¦ãã ããã
HTML<div itemscope itemtype="https://schema.org/Recipe">
<h2 itemprop="name">Grandma's Holiday Apple Pie</h2>
<img
itemprop="image"
src="https://c1.staticflickr.com/1/30/42759561_8631e2f905_n.jpg"
width="50"
height="50" />
<p>
By
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">Carol Smith</span>
</span>
</p>
<p>
Published:
<time datetime="2022-11-05" itemprop="datePublished">
November 5, 20022
</time>
</p>
<span itemprop="description">
This is my grandmother's apple pie recipe. I like to add a dash of nutmeg.
</span>
<br />
<span
itemprop="aggregateRating"
itemscope
itemtype="https://schema.org/AggregateRating">
<span itemprop="ratingValue">4.0</span> stars based on
<span itemprop="reviewCount">35</span> reviews
</span>
<br />
Prep time: <time datetime="PT30M" itemprop="prepTime">30 min</time>
<br />
Cook time: <time datetime="PT1H" itemprop="cookTime">1 hour</time>
<br />
Total time: <time datetime="PT1H30M" itemprop="totalTime">1 hour 30 min</time>
<br />
Yield: <span itemprop="recipeYield">1 9" pie (8 servings)</span>
<br />
<span
itemprop="nutrition"
itemscope
itemtype="https://schema.org/NutritionInformation">
Serving size: <span itemprop="servingSize">1 medium slice</span><br />
Calories per serving: <span itemprop="calories">250 cal</span><br />
Fat per serving: <span itemprop="fatContent">12 g</span><br />
</span>
<p>
Ingredients:<br />
<span itemprop="recipeIngredient">Thinly-sliced apples: 6 cups<br /></span>
<span itemprop="recipeIngredient">White sugar: 3/4 cup<br /></span>
â¦
</p>
Directions: <br />
<div itemprop="recipeInstructions">
1. Cut and peel apples<br />
2. Mix sugar and cinnamon. Use additional sugar for tart apples. <br />
â¦
</div>
</div>
çµæ 仿§æ¸ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4