Types of Structured Data

structured data types diagram

There are three  different types of structured data:

  • JSON-LD
  • RDFa
  • Microdata

The advantages of JSON-LD is that it’s “invisible” to the user and can only be read by search engines, it doesn’t mess up the rest of your code, and it’s much easier to implement than RDFa or Microdata.

Most sites nowadays use JSON-LD and that’s also the type of structured data that Google recommends, however it does still support all three types, as stated in the documentation

Google Search supports structured data in the following formats, unless documented otherwise. In general, we recommend using a format that’s easiest for you to implement and maintain (in most cases, that’s JSON-LD); all 3 formats are equally fine for Google, as long as the markup is valid and properly implemented per the feature’s documentation.

Google’s Documentation

We’ll be concentrating on JSON-LD (AKA JavaScript Object Notation for Linked Data) type on this website, as that’s the one that Google recommends using.

How do you identify which type of structured data is being used?

To identify which type of structured data is on a page, you can take a look at the code. To do this, you can open Inspect in Chrome, by right-clicking any part of a webpage and click Inspect > Inspect Element.

Alternatively, you can press:

  • Command+Option+i on your Mac
  • F12 on your PC
  • CTRL + Shift + i on your PC

Start by searching the code for this:

or alternatively, you can search for this (if the website is on WordPress and using Yoast SEO):

If you can’t find this, then it’s unlikely that the website is using JSON-LD code. However, some websites can’t use the opening and closing <script> tags within the <head> section of the site as they conflict with other scripts, so they have to remove them. In this case, you can search for the word schema, as we are hoping to see this if it’s JSON-LD:

or if you see this below, the code is in microdata:

or if you see this below, then the code is in RDFa:

If you’re still not sure, then this is an example of microdata – you could try searching for itemscope as that comes up a lot within this type of code:

This is an example of RDFa (AKA Resource Description Framework in attributes) – you could try searching for typeof as that comes up a lot in this type of code:

How to check if there’s structured data on a page?

You can just use a tool to check if there’s structured data on a page. Alternatively, you can also look yourself by using the methods outlined above.


Categories: ,