Skip to content
Back to log

Structured Data Basics

Chainabit's Chao · · 7 min read

In short

Structured data makes the meaning of a page’s content explicit. Explore the formats and features Google Search supports and the rules for rich results.

What does structured data do?

According to Google Search Central, structured data is a standard format for providing information about a page and classifying its content. It gives Google explicit information about what the page means. On a recipe page, for example, structured data can describe ingredients, cooking time, temperature, and calories.

Google uses the structured data it finds on the web to understand page content. It also uses it to learn about entities described in the markup, such as people, books, or companies. Google Search can use JSON-LD data describing a recipe’s name, author, and other details to display a rich result for that recipe.

Adding structured data can make a page eligible for more visually prominent search results. Google calls these rich results. Structured data alone does not guarantee that a rich result will appear. Eligibility also depends on meeting Google’s general guidelines and the rules for the specific feature.

How it relates to page content

Google Search Central explains that structured data appears as markup on the page it describes. The data on a page describes that page’s content. Do not create empty pages solely to host structured data.

The information you mark up must be visible to people reading the page. Google’s general guidelines say that even accurate information should not be marked up if users cannot see it. For example, if the JSON-LD describes a performer, the HTML body must describe the same performer.

The data must accurately represent the page’s content. Google gives the example of labeling sports broadcasts as local events to illustrate irrelevant markup. Labeling woodworking instructions as a recipe is similarly irrelevant.

Google’s content guidelines prohibit marking up misleading content or content unrelated to the page’s focus. Fake reviews are another example. Do not use structured data to deceive or mislead users. Do not impersonate a person or organization or misrepresent ownership, affiliation, or primary purpose.

Google also requires original content created by you or your users. Rich results are not shown for time-sensitive content that is no longer relevant. Structured data content must also follow any additional content guidelines and policies for the feature. For example, JobPosting content is subject to the job posting content policies.

Vocabulary and properties

According to Google Search Central, most structured data for Search uses the schema.org vocabulary. Google Search Central’s documentation for each feature defines how Google Search handles it. Schema.org includes other properties and objects that Google Search does not require and that may be useful to other search engines, services, tools, and platforms.

For an object to be eligible for an enhanced appearance in Google Search, it must include all of its required properties. Items missing a required property are ineligible for rich results. The documentation for each structured data feature specifies which properties are required, recommended, or optional.

Google says that adding more recommended properties can increase the likelihood that the information will appear in an enhanced search result. It is more important to provide fewer recommended properties with complete, accurate values than to include every possible property with incomplete, incorrectly formatted, or inaccurate data.

Google’s general guidelines recommend using the most specific applicable type and property names defined by schema.org. Any additional rules for the relevant rich result type also apply. Google can also make general use of the sameAs property and other schema.org structured data.

Supported formats

Google Search supports JSON-LD, Microdata, and RDFa unless otherwise specified. To be eligible for rich results, a page must use one of these supported formats. Google accepts all three formats as long as the markup is valid and follows the documentation for the feature.

Google generally recommends using the format that is easiest to implement and maintain. In most cases, that format is JSON-LD. Google also lists JSON-LD as the recommended format.

JSON-LD

Turn this insight into action.

Use the mobile app to continue with guided workflows.

JSON-LD is a JavaScript notation placed inside a <script> tag in the <head> or <body> of an HTML page. The markup sits outside the text users see. This structure makes nested data items easier to express.

In Google’s example, an Event can contain a MusicVenue with a PostalAddress that in turn contains a Country. Google can also read JSON-LD that JavaScript code or widgets embedded through a content management system add dynamically to the page.

Microdata and RDFa

Microdata is an open-community HTML standard for embedding structured data in HTML content. It uses HTML tag attributes to name the properties you want to expose as structured data. It is typically used in the <body> and can also be used in the <head>.

RDFa is an HTML5 extension that supports linked data. It adds attributes to HTML tags that describe the corresponding user-visible content for search engines. According to Google, RDFa is commonly used in both the <head> and the <body> of an HTML page.

Multiple items on one page

Google Search can understand multiple structured data items on a single page. For example, a page might contain a recipe, a video showing how to make it, and breadcrumbs that help users find the page. Each of these visible elements can be marked up with structured data.

Items can be nested or specified in separate blocks on the same page. In a nested structure, additional items are grouped under a main item. Google gives the example of grouping a recipe with its video and reviews.

In Google’s nested example, Recipe is the main item. Both aggregateRating and video appear within Recipe. In the example with separate items, Recipe and BreadcrumbList are independent structured data items on the same page.

Google also says to include the structured data type that reflects the page’s primary focus. For a page primarily about a recipe, Google gives the example of including Recipe alongside video and review data. If a page only includes video data, Google Search will have too little information to show the page as a recipe rich result as well.

If you mark up multiple reviews, you must include all reviews visible to people on the page. Google says that marking up only some of the visible reviews would mislead people who expect to see all the reviews based on how the search result appears.

Placement, access, and images

Place structured data on the page it describes unless the documentation for that type specifies otherwise. If the same content appears on duplicate pages, Google recommends adding the data to every duplicate, including the canonical page.

Google’s technical guidelines require that pages containing structured data remain accessible to Googlebot. Do not block access with robots.txt, noindex, or other access controls. Image URLs in structured data must also be crawlable and indexable. Otherwise, Google Search cannot find and display those images on the search results page.

An image specified as a structured data property must be relevant to the page it appears on. For example, the image specified for a NewsArticle must relate to that article. Google points to the URL Inspection tool for checking URL accessibility.

Limits of validity and eligibility

Google recommends testing structured data with the Rich Results Test during development. You can use this tool to validate structured data and, in some cases, preview a Google Search feature. Google says the Rich Results Test and the URL Inspection tool catch most technical errors.

After publishing, use the rich result status reports to monitor page validity. According to Google, templating or serving issues can cause structured data to become invalid after publication. Technical checks and quality guidelines cover different issues. Google says that quality guidelines are difficult to test with an automated tool.

Violating the quality guidelines can prevent even syntactically valid structured data from appearing as a rich result or cause it to be flagged as spam. A structured data issue can also trigger a manual action. This makes the page ineligible for rich results while leaving its ranking in Google web search unaffected. You can check for manual actions in the Manual Actions report in Search Console.

Ready to start?

Download the app and continue from your phone.

End of Entry