hRecipemicroformatXHTMLHTML classesrel attributes

HRecipe Microformat for Web Recipe Publishing

hRecipe Microformat for Web Recipe Publishing

In the world of web development, structured data allows machines to understand the context of human-readable content. One such effort is hRecipe, a draft microformat designed specifically for publishing recipe details on web pages using (X)HTML.

By utilizing standard HTML classes and rel attributes, hRecipe provides a way to mark up culinary data so that it can be easily parsed by software while remaining accessible to visitors.

Key Facts

  • hRecipe is currently a draft microformat.
  • It relies on (X)HTML for implementation.
  • Markup is achieved through HTML classes and rel attributes.
  • The minimum requirements for a valid entry are the fn (formatted name) and an ingredient.

How hRecipe Works

The primary goal of hRecipe is to standardize how recipe information is presented online. Instead of relying on visual layout alone, it uses semantic markers to identify specific parts of a recipe, such as the title and the list of components.

Minimum Requirements for Implementation

One of the strengths of hRecipe is its flexibility. In its simplest application, it can be used to identify individual foodstuffs. To do this, the microformat requires only two properties: the fn (which stands for "formatted name") and an ingredient. In cases where a single item is being listed, these two properties can be identical.

hRecipe Core Requirements
Property Description Requirement Level
fn The formatted name of the recipe or foodstuff Required
Ingredient The specific food item used in the recipe Required

Frequently Asked Questions

What is hRecipe?

hRecipe is a draft microformat used to publish recipe details on web pages using (X)HTML via specific HTML classes and rel attributes.

What are the mandatory properties for hRecipe?

The only required properties are the formatted name (fn) and an ingredient.

Can the formatted name and ingredient be the same?

Yes, when identifying individual foodstuffs, the fn and the ingredient can be the same value.

What technologies does hRecipe use for markup?

It utilizes (X)HTML, specifically leveraging HTML classes and rel attributes to define the data structure.

References

  1. "hRecipe at the Microformats Wiki". Retrieved 2009-08-07.