Schema Markup
Implement structured data to enhance your search presence
Table of Contents
What is Schema Markup?
Schema markup, also known as structured data, is a standardized format for providing information about a page and classifying its content. It helps search engines understand:
- What your content means, not just what it says - The relationships between different pieces of information - How to display your content in rich search results
Schema markup can significantly improve how your content appears in search results through rich snippets, knowledge graphs, and other enhanced features.
Types of Schema Markup
Common types of schema markup include:
- Organization: Company information and branding - LocalBusiness: Business location and contact details - Product: Product information and pricing - Article: News articles and blog posts - Recipe: Cooking instructions and ingredients - Review: Product and service reviews - Event: Event details and schedules - Person: Individual's information - FAQ: Frequently asked questions - HowTo: Step-by-step instructions
Choose the schema types that best match your content and business needs.
Implementation Methods
There are three main formats for implementing schema markup:
1. JSON-LD (Recommended): - JavaScript notation embedded in a <script> tag - Google's preferred format - Easier to implement and maintain - Doesn't affect page layout
2. Microdata: - HTML attributes added to existing elements - More visible in the HTML structure - Can be harder to maintain
3. RDFa: - Similar to Microdata but using different attributes - Less commonly used for schema markup
Google recommends using JSON-LD whenever possible.
Best Practices
Follow these best practices for schema markup implementation:
- Use the Most Specific Type: Choose the most specific schema type that applies - Include Required Properties: Always include all required properties for each type - Be Accurate: Ensure markup matches visible page content - Test Implementation: Use testing tools to validate your markup - Keep Updated: Maintain and update markup when content changes - Avoid Spam: Don't use markup for content not visible to users - Multiple Types: Use multiple schema types when appropriate - Consistent Information: Ensure markup matches other business listings
Testing and Validation
Several tools are available for testing schema markup:
- Google's Rich Results Test - Schema.org Validator - Google Search Console - Structured Data Testing Tool
Regular testing helps ensure: - Valid implementation - No syntax errors - Proper nesting of properties - Eligibility for rich results
Common Examples
Here are some common JSON-LD implementation examples:
Article Schema: ```json { "@context": "https://schema.org", "@type": "Article", "headline": "Article Title", "author": { "@type": "Person", "name": "Author Name" }, "datePublished": "2025-01-01", "image": "https://example.com/image.jpg" } ```
Product Schema: ```json { "@context": "https://schema.org", "@type": "Product", "name": "Product Name", "description": "Product description", "offers": { "@type": "Offer", "price": "19.99", "priceCurrency": "USD" } } ```
Always test your implementations using Google's Rich Results Test.