✨ Get 25% OFFon any plan. Use the coupon:

Schema markup: what it is and how to use structured data

By Tiago CostaUpdated on July 2, 2026

Illustration of a schema markup code block with an arrow pointing to a search result with stars and an image.
Definition

Schema markup is the markup that labels a page's content for search engines. In practice, it:

  • uses the standardized Schema.org vocabulary;
  • is almost always written in JSON-LD, a block of code in the HTML;
  • tells Google what each piece of data is (a price, a rating, an author, a date);
  • enables rich results, such as review stars and FAQ, in search.

What schema markup is

Schema markup is a snippet of code you insert into a page's HTML to explain to search engines what that content represents. Instead of letting Google guess whether a number is a price, a rating or a date, you label each piece of information with a clear, machine-readable meaning.

Think of a recipe article. For a person, the prep time, the review rating and the ingredient list are obvious. For the search engine, all of it is just text on the screen. With schema markup, you tag each of those elements with a specific label, and Google starts to show an enriched preview with stars, prep time and a photo right in the result.

A note on context. In databases, the word schema describes the structure of tables and columns (the well-known SQL schema). In this glossary, schema markup always means data markup for search, a core piece of on-page SEO and of how your content appears on the SERP.

Schema markup, Schema.org and structured data: what is the difference

The three terms show up together all the time and are easy to mix up, but each one has its own role:

  • Schema.org: the shared vocabulary, created by Google, Microsoft, Yahoo and Yandex, that defines the types (Product, Article, Recipe, FAQPage) and the properties (name, price, author) that search engines recognize.
  • Schema markup: the act of applying that vocabulary in your page's code, that is, the markup itself that you write.
  • Structured data: the broader concept of information organized in a standardized format. Schema markup is a specific case of structured data aimed at SEO.

In everyday practice, many people use the three as synonyms, and that is fine. The important thing is to understand that Schema.org is the dictionary, schema markup is the sentence you write with that dictionary, and structured data is the general idea behind it all.

Infographic with the steps vocabulary, markup, search engine and rich result, showing how schema markup generates rich results.
The anatomy of a JSON-LD schema markup block and how each field becomes a rich feature in search.

How schema markup works (and why JSON-LD became the standard)

Schema markup can be written in three formats: Microdata, RDFa and JSON-LD. Google recommends JSON-LD, a block in JavaScript Object Notation that stays separate from the visible HTML, usually in the head of the page. It is easier to maintain, does not break with layout changes and can be inserted by plugins or scripts without touching the content.

This format has become the de facto standard of the web. According to the Web Almanac by HTTP Archive, in 2024 JSON-LD was already present on around 41% of the pages analyzed, up from 34% in 2022, which shows the growing adoption of markup as an SEO practice.

The flow is straightforward: the crawler visits the page, finds the schema block, interprets each property and, if the content is eligible, shows an enriched feature in the result. The markup also feeds Google's Knowledge Graph, helping the search engine connect entities such as brands, authors and products.

Schema markup examples: the types that generate rich results

Google only displays rich results for content types it already officially supports. Knowing the most useful ones helps you prioritize the markup effort:

Schema typeWhat it is forRich result
Product and OfferE-commerce products.Price, availability and review stars.
ArticleArticles and blog posts.Prominence in news and editorial content.
FAQPageQuestions and answers.Expanded FAQ in search, boosting the chance of the featured snippet.
RecipeCooking recipes.Prep time, calories and rating.
LocalBusinessLocal businesses.Hours, address and phone in the profile.
BreadcrumbListNavigation trail.Site path instead of the raw URL.

A simple FAQPage example in JSON-LD describes a question (Question) and the accepted answer (acceptedAnswer), each with its own text. Filling in the recommended properties, not just the required ones, greatly increases the chance of the rich feature being displayed.

How to create and validate your schema markup step by step

Applying schema markup does not have to be complicated. A routine that works for most sites:

  • Choose the right type: identify what the page is (an article, a product, a FAQ) and find the matching type on Schema.org.
  • Generate the JSON-LD: write the block by hand or use a schema generator. On platforms like WordPress, SEO extensions insert the markup automatically.
  • Fill it with real data: never mark up a review or a price that does not exist on the page, because that violates the guidelines and can trigger a penalty.
  • Validate before publishing: use Google's Rich Results Test and the Schema.org validator to catch errors and warnings.
  • Monitor in Search Console: follow the enhancements report to see which pages are eligible and fix issues.

Once published, Google needs to crawl the page again to recognize the markup, so rich results can take a few days to appear. Marking up without validating is the most common mistake: a single missing required field already blocks the feature from showing.

Illustration of a schema markup code block next to an approved validation seal with a check mark.

Why schema markup still matters (SEO and AI)

Schema markup is not a direct ranking factor, but it remains very relevant, and for two reasons that have only grown. The first is the classic one: rich results take up more space, draw more attention and tend to improve the click-through rate, an indirect boost to the page's performance.

The second is more recent. Generative search engines and AI assistants use semantic structure to understand and cite content with more confidence. A well marked-up page is easier to interpret, summarize and reference inside AI Overviews, which brings schema markup close to technical SEO and AI optimization at the same time.

In other words, the question "is schema markup still worth it?" has a clear answer: yes, and probably more than before. Describing content explicitly helps both the traditional search engine and AI models trust your page as a source.

FAQ

Frequently asked questions

What is schema markup?

Schema markup is the markup code, usually in JSON-LD and based on the Schema.org vocabulary, that you add to the HTML to describe a page's content for search engines. It labels elements such as prices, reviews, authors and questions, which enables rich results in search.

What is an example of schema markup?

A common example is FAQPage markup: a block of JSON-LD that describes a question (Question) and the accepted answer (acceptedAnswer). Other frequent examples are Product, with price and rating, Recipe, with prep time, and Article, for blog posts. Each type generates a different enriched feature in the result.

Why is schema markup important in SEO?

Because it helps Google understand the content accurately and enables rich results, which increase visibility and click-through rate. It is not a direct ranking factor, but it indirectly improves the page's performance and makes it easier for AI search engines to cite your content.

Is schema markup still important?

Yes, and increasingly so. Beyond continuing to generate rich results, schema markup helps AI assistants and generative search engines interpret and cite content with more confidence. Describing the page explicitly has become an advantage in both traditional SEO and AI optimization.

Is schema markup the same as Schema.org?

Not exactly. Schema.org is the shared vocabulary that defines the types and properties search engines recognize. Schema markup is the act of applying that vocabulary in your page's code. In short, Schema.org is the dictionary and schema markup is the sentence written with it.

Rich results without writing a single line of code

Automarticles writes and optimizes your blog articles on its own, already with the schema markup Google needs to feature your content.

Start free trial
Keep learning

Related concepts

Structured dataStructured data is a standardized code format that describes the content of a page for search engines, explicitly telling them what each element means (a price, a rating, a recipe, an event). Written with the Schema.org vocabulary, it helps Google interpret the page accurately and display rich results, such as review stars, frequently asked questions and images directly on the results page.JSON-LDJSON-LD (JavaScript Object Notation for Linked Data) is the format Google recommends for adding structured data to a page, inside a script block kept separate from the visible content. Instead of scattering markup across the HTML, it gathers everything into a JSON object using the Schema.org vocabulary, telling the search engine explicitly what each piece of information represents (an author, a price, a rating, a date) to enable rich results in search.Schema.orgSchema.org is the standardized structured data vocabulary created jointly by Google, Microsoft, Yahoo and Yandex to describe page content in a way machines understand. It defines types (such as Product, Article, Event) and properties (such as name, price, author) that search engines recognize. It is not a piece of code you install, but the shared dictionary you use when marking up a page with structured data.On-page SEOOn-page SEO (or on page SEO) is the set of optimizations made within the page itself to improve its performance in search engines. It involves the content, the title, the headings, the meta tags, the images, the internal links and the URL structure, everything you control directly in the HTML and the text. It is one of the pillars of SEO, alongside off-page SEO (external factors) and technical SEO (site infrastructure).