What is Schema Markup?
Schema markup is structured data vocabulary that helps search engines understand your content. It can earn you rich results like star ratings, FAQ accordions, and featured snippets.
Benefits of Schema Markup
- Rich results in search (stars, prices, availability)
- Higher click-through rates
- Better search engine understanding
- Voice search optimization
- Knowledge graph eligibility
1. JSON-LD vs Microdata vs RDFa
JSON-LD (Recommended)
Google's preferred format. Clean, easy to maintain, doesn't clutter HTML.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Executive Anvil",
"description": "Sleek and powerful anvil",
"offers": {
"@type": "Offer",
"price": "119.99",
"priceCurrency": "USD"
}
}
</script>
2. Common Schema Types
Product Schema
For e-commerce products. Shows price, availability, and ratings in search results.
Article Schema
For blog posts and news articles. Can appear in Top Stories carousel.
FAQ Schema
Creates expandable Q&A sections directly in search results.
Local Business Schema
For local businesses with physical locations. Shows hours, reviews, contact info.
3. Testing & Validation
Google Rich Results Test
Test if your markup is eligible for rich results: search.google.com/test/rich-results
Schema Markup Validator
Validate syntax at validator.schema.org