SEO – Structured Data and Schema Markup
Structured data is extra code on a page which tells the search engine exactly what the content is: an article, a product, a company, an event and so on. The common vocabulary for it is Schema.org. Writing it is called schema markup.
Structured data does not directly make a page rank higher. It helps search engines to understand the page, and it can make the result more attractive with rich results (stars, price, images, breadcrumb path), which can bring more clicks.
Formats of structured data
| Format | Notes |
|---|---|
| JSON-LD | Recommended by Google. A script block, separate from the visible HTML |
| Microdata | Attributes added to HTML tags |
| RDFa | Attributes added to HTML tags, less common |
Example 1: Article
Put this in the head or the body of the article page:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "SEO Title Tag: How to Write a Good Title",
"image": "https://example.com/images/title-tag.jpg",
"datePublished": "2026-08-20T08:00:00+05:30",
"dateModified": "2026-09-01T10:30:00+05:30",
"author": {
"@type": "Person",
"name": "Robin Sharma",
"url": "https://example.com/authors/robin-sharma/"
},
"publisher": {
"@type": "Organization",
"name": "Example Site",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/images/logo.png"
}
}
}
</script>
The JSON above was checked with a JSON parser, so it has no syntax errors like a missing comma or quote.
Example 2: Organization
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Site",
"url": "https://example.com/",
"logo": "https://example.com/images/logo.png",
"sameAs": [
"https://www.facebook.com/examplesite",
"https://www.linkedin.com/company/examplesite"
]
}
</script>
Example 3: BreadcrumbList
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
{ "@type": "ListItem", "position": 2, "name": "SEO Tutorial", "item": "https://example.com/seo/" },
{ "@type": "ListItem", "position": 3, "name": "Structured Data" }
]
}
</script>
Example 4: Product with rating
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Red Running Shoes",
"image": "https://example.com/images/red-shoes.jpg",
"description": "Light running shoes for daily use.",
"sku": "RS-1001",
"offers": {
"@type": "Offer",
"price": "2499.00",
"priceCurrency": "INR",
"availability": "https://schema.org/InStock",
"url": "https://example.com/red-running-shoes/"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"reviewCount": "128"
}
}
</script>
Only add ratings and reviews which are real, and visible on the page. Fake markup can lead to a manual action from Google.
Which types still give rich results?
Google changes its supported types from time to time. Types like Article, Product, Review snippet, Breadcrumb, Event, Recipe, Video and Organization or LocalBusiness are used for rich results or for understanding. FAQ and HowTo markup no longer give rich results in Google Search (HowTo ended in 2023 and FAQ in 2026). The markup can still be valid Schema.org code, but do not add it only to get a rich result. Always check the current list in the Google Search Central documentation.
Rules for structured data
- The markup must match what users can see on the page.
- Use the most specific type, and fill the required fields.
- Do not mark up hidden content or content of another page.
Test your markup
- Rich Results Test (by Google): shows if the page can get rich results.
- Schema Markup Validator (validator.schema.org): checks any Schema.org markup for syntax.
- The Enhancements reports in Google Search Console show errors across the site.
Structured data in WordPress
SEO plugins like Yoast SEO and Rank Math add Article, Organization, Breadcrumb and other markup by themselves. For special types you can use a schema plugin or add JSON-LD in the theme.
| Exercises & Assignments |
|---|
| Write Article structured data in JSON-LD |
| Write BreadcrumbList structured data |
| Interview Questions & Answers |
|---|
| What is structured data and schema markup? |