Adding schema markup to a website involves embedding specific structured data in your HTML code that helps search engines understand the content of your site better. Here’s a step-by-step guide to adding schema markup to your website:

1. Choose the Appropriate Schema Type

There are 1000s of different types of schema that exist on the schema.org website. One common misconception about schema is that it’s intended to represent everything that could be searched for on the web—but this is not true. Schema.org only attempts to find a structured way of representing the most common things that are used or searched for on the web.

Types of Schema Markup in SEO

The best way to figure out what types of schema you should use is on the search gallery pages of Google and Bing. The most common ones are:

  • Local Business/Organization: This tells Search Engines facts about the business, such as hours they’re open, address, phone numbers and more. To generate local business schema for your site, see Local Business Schema.
  • FAQs: A list of questions and answers about the website or content on the page.
  • Product: This is great for eCommerce websites, where products are marked up with the price, quantity in stock, reviews and other important details.
  • Breadcrumbs: Breadcrumbs give search engines a better way to understand how a specific page fits into the overall structure of the site.

We recommend only implementing schema that is supported by search engines. This recommendation comes from the fact that you can easily waste hours implementing schema for 100s of things across a site—but that delivers little value overall. If you focus on what search engines support, you will be saving time and effort.

  • Go to Schema.org and find the schema type that matches your content. For example, if you have a blog, you might choose the Article schema; if you run a local business, you might choose the Local Business schema.

2. Generate the Schema Markup

There are many tools that you can use to generate the schema markup for your page. The following are a few different tools you can go through.

Google’s Structured Markup Helper

This tool allows you to choose the type of schema you want to create and then helps you visually select the data from the webpage you want to grab it from. This is great if the website is already live and you want to simply select the data on the website. That being said, it is a bit clunky to use.

Merkle’s Technical SEO Schema Generator

This is one of the best tools to use. You can quickly select the type of schema you want to generate and then it’s easy to use text fields to fill in that data.

Rank Ranger’s Schema Generator

This is another simple tool to generate schema quickly by entering a range of text input boxes.

  • Use a tool like Google’s Structured Data Markup Helper or JSON-LD Schema Generator to create your schema markup. These tools can help you create the correct JSON-LD, Microdata, or RDFa markup.

3. Add the Schema Markup to Your Website

To embed the schema markup on a page in your site:

  1. Go to the site editor, and in the left panel, click Pages.
  2. Next to the page you want to add the schema markup, click the Settings button, and select SEO.
  3. Click or scroll to Header HTML, and paste your schema markup in the box provided.
  4. Republish the site to make sure the updated schema is live.
  • JSON-LD: This format is preferred by Google and is easy to add. Insert the generated JSON-LD script into the <head> section of your HTML.
  • Microdata: This requires you to add specific attributes directly to your HTML tags. It’s more integrated but can be more cumbersome to implement.
  • RDFa: Similar to Microdata but uses different attributes and namespaces.

4. Test the Schema Markup

After you’ve added the schema and republished the site, you should test your schema markup. To do so, go to Google’s Structured Data testing tool, type the exact page URL, and then click Run Test. Use Google’s Rich Results Test to test your page. Enter the URL of your page or paste your code to see if the markup is correctly recognized. You can also use Schema Markup Validator to check for any errors or warnings in your schema markup.

The test returns the exact schema that Google sees when it crawls your page.

Most of the time users get confused between Schema Markup and Structured data Markup But has differences. So we will let you know the differences of Schema Markup and Structured markup with the blog post. Check: Differences Between Schema Markup and Structured Markup