Schema Markup: Adding Structured Data to Your Website

Schema markup helps search engines understand the meaning behind your content, not just the words on the page. Implementing structured data can unlock rich results — enhanced search listings that stand out and attract more clicks.

Table of Contents

What Is Schema Markup?

Schema markup is a collaborative vocabulary created by Google, Bing, Yahoo, and Yandex (available at schema.org) that provides a shared language for describing content. When you add schema markup to your HTML, you are explicitly telling search engines what your content means — not just what it says.

For example, without schema, search engines see "4.5 stars" as plain text. With schema, they understand it as a rating value associated with a specific product or service. This semantic understanding enables rich results, knowledge panel entries, and other enhanced search features that plain HTML cannot achieve on its own.

JSON-LD: The Recommended Format

Google recommends JSON-LD (JavaScript Object Notation for Linked Data) as the preferred format for structured data. It is implemented as a script block in the head of your page, completely separate from your visible content. This makes it easier to maintain and less likely to break your page layout.

A basic JSON-LD implementation looks like this: a script tag with type "application/ld+json" containing a JSON object with @context (schema.org), @type (the schema type), and specific properties. For example, an Article schema includes headline, author, datePublished, and publisher information.

Common Schema Types

The most widely used schema types include Article (for blog posts and news articles), Product (with price, availability, and reviews), LocalBusiness (with address, hours, and contact), FAQ (for question-and-answer content), HowTo (for step-by-step instructions), Recipe (with ingredients and cooking times), and Event (with dates, location, and ticket info).

Choose schema types that accurately represent your content. A single page can include multiple schema types — for example, an article page might include both Article and FAQPage schemas. Use the most specific type available (LocalBusiness instead of Organization for a physical store).

Rich Results and Their Impact

Rich results are enhanced search listings that display additional visual elements beyond the standard title, URL, and description. They can include star ratings, product prices, FAQ dropdowns, recipe images, event dates, and how-to steps. These enhanced listings occupy more space in search results and attract significantly more clicks.

Studies show that rich results can increase click-through rates by 20-35% compared to standard listings. This increased engagement drives more organic traffic without requiring higher rankings — your existing position becomes more effective.

Implementation Best Practices

Only mark up content that is visible to users on the page. Do not use schema to describe content that does not exist or is hidden. Ensure all required properties for your chosen schema type are included — incomplete markup will not qualify for rich results. Keep your markup accurate and up to date.

Test your implementation using Google's Rich Results Test tool and monitor the Enhancements report in Google Search Console for any errors. Start with the most impactful schema types for your business, then expand over time. Avoid marking up the same content with multiple conflicting schema types.

Frequently Asked Questions

What is schema markup?

Schema markup is a standardized code format (vocabulary) that you add to your website to help search engines understand your content better. It uses a shared vocabulary from schema.org to describe entities, relationships, and actions on your pages.

What format should I use for schema markup?

Google recommends JSON-LD (JavaScript Object Notation for Linked Data) format. It is the easiest to implement because it is a script block in the head of your page, separate from your visible HTML content. Microdata and RDFa are alternatives but are harder to maintain.

Does schema markup improve rankings?

Schema markup is not a direct ranking factor. However, it enables rich results (enhanced search listings) which can significantly increase click-through rates. Rich results like star ratings, FAQ dropdowns, and product prices make your listing more visible and attractive in search results.

Related Guides

View all guides →