No doubt you will have noticed results on search engines with extra features around the usual title tag, meta description and URL. From breadcrumbs to sitelinks to FAQs, these ‘rich snippets’ are usually achieved by implementing structured data or SCHEMA Markup. To help you get your result attracting similar attention on the SERPs, we’ve produced an introductory guide on how to easily code structured data for your website.

 

What is structured data?

Structured data is a form of code which helps search engines determine the content on your website and present it in marked up styles on their results pages. From question and answer boxes that sit beneath your search listing (FAQ Schema) to local business listings which show your opening hours, contact details and more when searchers type in your brand name.

For a comparison that’s similar, consider a dictionary definition of a word:

Here, you can see how the dictionary helps you identify information about the word (verb, UK, pronunciation) before presenting the definition.

Where a dictionary provides humans with a quick way of understanding what type of word it presents, structured data does the same for search engines.

However, the complication lies in the fact that there are many more variables when it comes to what is included on your website.

For example, your site could consist of product reviews, prices, videos, imagery, blog-posts and a whole host of other content and media.

Check out the Google Search Gallery to see the different classifications of markup and the rich snippets you can achieve after implementation.

Quick note: there are occasions where Google won’t choose to display your structured data as a rich snippet. This is generally to do with quality or the presence of other structured data on the same page.

 

More on Structured Data and SCHEMA

A search engine will crawl your site and try pick out the relevant content for the search query in question. To speed up this process, structured data uses code to identify specific information related to your page and content.

For example, at the start of a typical blog post, you’ll see page title code in the HTML:

 <title>How To Find And Acquire Featured Snippets | Salience</title>

 

In a blog post that has structured data, you’ll also see something like the following:

"@type": "BlogPosting",
"headline": "How To Find And Acquire Featured Snippets”

This code tells the search engine exactly what it’s looking at without the need for further inspection. More importantly, it means the search engine can present your result in an enhanced format as it has extra data to work with.

In the above example, you can see how the search result has star ratings and additional information such as the number of pages, the weight, and the publisher. Aside from its benefit for the user, this upgraded presentation also helps attract their attention and take up more real estate on the results page.

Taking a look at the code for this page, you’ll see a number of itemprop additions to the code. This is called MicroData, a form of structured data.

This form of data is a little outdated now and it’s recommended to just JSON-LD. That’s because this sits in the head of your page rather than within the body. This helps crawlers find the information even faster, which is why Google has started promotes the use of JSON-LD for structured data above other types.

Check out an example of structured data for a food recipe below:

<script type="application/ld+json">
    {
      "@context": "https://schema.org/",
      "@type": "Recipe",
      "name": "Party Coffee Cake",
      "author": {
        "@type": "Person",
        "name": "Mary Stone"
      },
      "datePublished": "2018-03-10",
      "description": "This coffee cake is awesome and perfect for parties.",
      "prepTime": "PT20M"
    }
    </script>

The above code is simply placed in the header of your HTML code. You can do this manually or automatically with the use of site plugins.

Don’t be put off by the code either. While many site owners tend to stay away from code as much as possible, the good news is that when it comes to structured data there are a number of online tools which generate the code for you. This means you don’t need knowledge of code or web development for creating structuring your data and acquiring rich snippets.

 

Google’s Structured Data Markup Helper

Google’s structured data markup helper automates the process of identifying which parts of your content need marking up with SCHEMA code. To start, you’ll need to identify the type of media you are marking up. The tool has options to generate code for the most common web page categories including:

  • Articles
  • Events
  • Local businesses
  • Restaurants
  • Book reviews
  • Films
  • Products
  • Software applications
  • Data sets
  • Job postings
  • Question and answer pages
  • TV episodes

For more information on what types of rich snippets this mark-up could result in, check out our guide to the best rich snippets and how to get them.

Once you’ve identified the type of page or media type you are marking up, you’ll need to enter the URL in question. The tool will then present the page making each page element clickable. You’ll then be able to choose what that element is and generate the code with the right ID tags.

In this example, we’ve chosen to mark-up an article. In this second stage, you can simply move through the article, clicking each element and matching it to the relevant ID tag in the drop down menu. Once complete, simply hit create html and the tool will present the code you need to add your site.

[salience_cta heading=”Rich results.” copy=”We know the schema to improve your CTR” image=”” background=”https://salience.co.uk/wp-content/uploads/Challenge-Us_Background.png” link=”https://salience.co.uk/contact/” button_copy =”Your Free Audit”]

 

How to create SCHEMA code with Google’s Structured Data Markup Helper

  1. Identify the content type you want to create code for
  2. Enter your URL (or HTML if your page isn’t yet live)
  3. Click ‘Start Tagging’.

This will then present a page similar to the below, with a preview of the page. You will be able to highlight each element on the page and then use the dropdown menu to start creating your SCHEMA markup. For further guidance, follow the steps below.

  1. Highlight a relevant element on your page
  2. Choose the identifier from the drop-down menu
  3. Check the My Data Items column to the right and make sure you’ve marked up the right element
  4. Repeat steps 4-6 until you’ve tagged all the relevant properties
  5. Once complete, click create HTML.
  6. Using the drop-down menu decide whether to use JSON-LD or Microdata
  7. Copy and paste the relevant code to your page code.

It’s worth noting that if you use microdata, you’ll need to copy and paste the highlighted code to the HTML of your page. If using JSON-LD, you’ll need to add the script block to the head section of your HTML. Clearly, it’s easier to implement JSON-LD. And as it’s the preferred type of structured data, it’s always recommend using this.

There are however plenty of SCHEMA types and structured data formats which you can’t create with Google’s Structured Data Helper. To help, we’ve created a post on Schema for eCommerce sites which gives you the code you’ll need. All you need to do is go through and fill in the details.

 

Using WordPress Plugins for SCHEMA Markup

If you’re using a CMS like WordPress, it might be worth looking into using a SCHEMA plugin service rather than adding the code manually. There are plenty on the market from paid services to free. Of course, the paid versions offer better features but don’t discount the free ones. If you’re on a budget you’ll still get the option for some basic SCHEMA markup features including shortcodes, custom icons, pro / con lists and more. Each tool is relatively easy to use, so take a look at our favourite 5 schema plugins below:

  1. Schema Pro – https://wpschema.com/
  2. Schema App – https://www.schemaapp.com
  3. WP Review Pro – https://wpleaders.com/go/wp-review-pro/
  4. WP SEO Structured Data Schema – https://wordpress.org/plugins/wp-seo-structured-data-schema/
  5. Let’s Review WordPress Plugin – https://codetipi.com/products/lets-review/
Summary

No doubt you will have noticed results on search engines with extra features around the usual title tag, meta description and URL. From breadcrumbs to sitelinks to FAQs, these ‘rich snippets’ are usually achieved by implementing structured data or SCHEMA Markup. To help you get your result attracting similar attention on the SERPs, we’ve produced […]

Liam
Author Spotlight: Liam

Liam's Experience Liam is a first class Creative Writing graduate from Liverpool John Moore’s University. His passion for words and language landed him a 2-week contract at Salience to work on Dreams Beds commercial landing page copy. That led to an offer of a copywriting role at Salience. From here, he became more and more interested in the strategic and data-analysis side of SEO and content marketing. Since starting his role as Copywriter at Salience in 2018, he has taken more responsibility with how Salience approach content and is now Head of Content, after 1 and 2 year stints at Content Executive and Content Strategist. Outside of Salience, his poetry collection Waldeinsamkeit (translation: the feeling of being alone in the woods) was published by Nine Pens Press in 2021 and he was a regular contributor to Urbanista Magazine, writing reviews of new music releases, gigs, festivals, restaurants and theatre shows. Something You Are Proud Of Optimising an unused and unvisited Mattress Size Guide for Dreams Beds and turning it into their fourth most popular on-site organic page, with a 232% increase in traffic and a 462% increase in revenue, taking transactions from 154 to 670. Learning everything there is to know about bras and lingerie in his full site rewrite of Lingerie Outlet Store which resulted in 1777% increase in visibility, taking them from an ebay-only store to a mid-market player in less than 18 months. If you need to know the difference between a full-cup and a bralette, give him a shout. On a late night in Chester, after a couple cocktails and with another in hand, the Salience team decided to describe each team member around the table with three words. We’ll leave the NSFW adjectives out but Liam is most proud that the adjective used to describe him most frequently was kind/caring. A Bit About Yourself Liam pretends to spend his weekends up mountains and walking the countryside but is usually at a late night gig or carousing his way about the city sipping coffees and pints of IPA. He does however enjoy a good hike and is currently training for a marathon. He’s ran a number of organised races previously, with a half marathon being the furthest so far. He’s also an avid reader and likes nothing more than sitting by a warm fire in a country pub with his latest book of choice. Mid-week, you’ll find him playing snooker or out around the local farmer’s fields with his dog. Links to Client Work Liam’s insights on how to target featured snippet was shared by Flashpoint Marketing. https://flashpointmarketing.biz/get-featured-snippets/ He analysed the women’s fashion industry and identified how targeting Occasionwear was a key tactic for smaller brands dominating at the top of SERPs. He created the Parents Guide to Finance &amp; Credit exploring parental rights around finance with helpful tips and budget guides for every phase of mum and dad. https://newhorizons.co.uk/finance-credit-guide-for-parents/