Schema Markup, also known as Schema.org markup or structured data markup, is a specific type of code that you add to your website's HTML to provide search engines with additional information about the content on your webpages. This structured data helps search engines better understand the context of your content, which can lead to enhanced search engine results in the form of rich snippets, knowledge panels, and other special search result features. Schema Markup is a collaborative effort by major search engines like Google, Bing, Yahoo, and Yandex.
Here are the key elements of Schema Markup:
Schema.org Vocabulary: Schema Markup uses a standardized vocabulary provided by Schema.org. This vocabulary consists of various types and properties that describe different types of content, such as articles, events, products, people, organizations, and more.
Types and Properties: Types represent the specific category of an entity (e.g., "Person," "Product," "Event"), and properties are attributes or characteristics of those entities (e.g., "name," "description," "datePublished").
Structured Data Formats: Schema Markup can be implemented using different structured data formats, including JSON-LD (JavaScript Object Notation for Linked Data), Microdata, and RDFa. JSON-LD is the most commonly recommended format for webmasters, as it's easy to implement and maintain.
Here's a simplified example of how to implement Schema Markup using JSON-LD for a recipe:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Recipe",
"name": "Classic Chocolate Chip Cookies",
"description": "A delicious recipe for homemade chocolate chip cookies.",
"author": {
"@type": "Person",
"name": "John Doe"
},
"datePublished": "2023-09-19",
"prepTime": "PT30M",
"cookTime": "PT15M",
"recipeYield": "24 cookies",
"ingredients": [
"2 1/4 cups all-purpose flour",
"1/2 teaspoon baking soda",
"1 cup unsalted butter, softened",
"1/2 cup granulated sugar",
"1 cup brown sugar, packed",
"2 large eggs",
"2 teaspoons pure vanilla extract",
"2 cups chocolate chips"
],
"instructions": "..."
}
</script>