Webmaster
How Yandex indexes sites
A site on search results page

hRecipe microformat

hRecipe is an (X)HTML markup standard for cooking recipes that was developed by an international task force. This markup enables automatic processing of recipes published on the web by extracting semantic elements (ingredients, cooking instructions, cooking time). The markup is not visible to site visitors and does not affect the display of information on the page.

For example, take the following recipe:

Note. 

Beer chicken and rice

Ingredients:

  • 1 chicken

  • 0.5 L of beer

  • salt

  • pepper

  • spices to taste

Cooking instructions:

  • Cut up the chicken, place into a baking pan, add salt, pepper and other spices to taste.

  • Pour the beer over the chicken and put the pan into the oven.

  • Roast at 180 degrees Celsius (350 degrees Fahrenheit) for 40 to 45 minutes.

You can convert this text into hRecipe format:

<div class="hrecipe">
  <h1 class="fn">Beer chicken and rice</h1>
  <h2>Ingredients</h2>
  <ul>
    <li class="ingredient">
      <span class="amount">1</span> <span class="name">chicken</span>
    </li>
    <li class="ingredient">
      <span class="value">0.5</span> <span class="type">L</span> <span class="name">of beer</span>
    </li>
    <li class="ingredient">
      <span class="name">salt</span>
    </li>
    <li class="ingredient">
      <span class="name">pepper</span>
    </li>
    <li class="ingredient">
      <span class="name">spices</span>
      <span class="amount">to taste</span>
    </li>
  </ul>
  <h2>Cooking instructions</h2>
  <ul class="instructions">
    <li class="instruction">Cut up the chicken, place into a baking pan, add salt, pepper and other spices
    to taste.</li>
    <li class="instruction" >Pour the beer over the chicken and put the pan into the oven.</li>
    <li class="instruction" >Roast at 180 degrees Celsius (350 degrees Fahrenheit) for 40 to 45 minutes.</li>
  </ul>
</div>

The draft specification for hRecipe format is available at http://microformats.org/wiki/hRecipe.

To find out how Yandex processes the fields of this format, read this help topic.

hRecipe markup is processed simultaneously while your site is being indexed by the Yandex search robot. The extracted data is validated and later may be used to display the elements of the recipe on the search results page.

Note. 

Please note that data marked up in hRecipe format will become publicly available and may be extracted and used by any service.

Rate this article
Thank you for your feedback!