Lesson 9 of 9
Microdata & Structured Content
Structured data helps search engines understand your content beyond basic HTML. Using Schema.org vocabulary, you can mark up articles, products, FAQs, recipes, events, and more - enabling rich snippets in Google search results (star ratings, FAQs, prices, breadcrumbs). The preferred format is JSON-LD, which Google recommends.
Structured Data Formats
There are three formats for adding structured data:
1. JSON-LD (Google preferred):
<script type='application/ld+json'>
{ '@context': 'https://schema.org', '@type': 'Article', 'headline': '...' }
</script>
Pros: Separate from HTML, easy to maintain, Google's recommended format.
2. Microdata (HTML attributes):
<div itemscope itemtype='https://schema.org/Person'>
<span itemprop='name'>Jane</span>
</div>
Pros: Embedded in markup, visible connection to content.
3. RDFa (older format):
<div vocab='https://schema.org/' typeof='Person'>
<span property='name'>Jane</span>
</div>
Common schema types for rich snippets:
• Article - Blog posts, news articles
• Product - Price, availability, reviews
• FAQ - FAQ accordion in search results
• HowTo - Step-by-step instructions
• Course - Course name, provider, description
• BreadcrumbList - Navigation path in search results
• Organization - Company info
Test with: Google Rich Results Test (search.google.com/test/rich-results)
Microdata helps search engines understand entities and generate Google rich snippets
Tip
Always validate your structured data using Google's Rich Results Test (search.google.com/test/rich-results) before deploying. Invalid JSON-LD will be silently ignored by Google - you won't see errors in the browser console. The test tool shows exactly which rich result types your page is eligible for.
Quick Quiz: Structured Data
Module 7 - Knowledge Check
Which element should you use ONLY ONCE per page?
Finished this lesson?