Overview
Schema markup (structured data) helps search engines understand your content and can enable rich results in search. This guide covers JSON-LD examples for BlogPosting and FAQ schema, and how to test your schema markup.What Is Schema Markup?
Schema markup is a form of structured data that provides additional information about your content to search engines. It helps search engines understand what your content is about and can enable rich results (enhanced search listings).JSON-LD Format
JSON-LD (JavaScript Object Notation for Linked Data) is the recommended format for schema markup. It’s placed in a<script> tag in the <head> or <body> of your HTML.
JSON-LD Structure
BlogPosting Schema
BlogPosting schema helps search engines understand your blog posts and can enable rich results.Basic BlogPosting Schema
Complete BlogPosting Schema
BlogPosting Schema Properties
- headline: The title of the blog post
- description: A brief description of the blog post
- image: URL(s) to the featured image(s)
- datePublished: Publication date (ISO 8601 format)
- dateModified: Last modification date (ISO 8601 format)
- author: Author information (Person schema)
- publisher: Publisher information (Organization schema)
- mainEntityOfPage: The main URL of the page
- articleSection: The section or category of the article
- keywords: Relevant keywords (comma-separated)
FAQ Schema
FAQ schema helps search engines understand your FAQ content and can enable FAQ rich results.Basic FAQ Schema
Complete FAQ Schema
FAQ Schema Properties
- mainEntity: Array of Question objects
- Question.name: The question text
- Question.acceptedAnswer: The answer (Answer schema)
- Answer.text: The answer text
Implementing Schema Markup
Where to Place Schema
Place schema markup in the<head> or <body> of your HTML:
Dynamic Schema
For dynamically generated content, generate schema markup programmatically:Testing Schema Markup
Google Rich Results Test
Use Google’s Rich Results Test to validate your schema markup:- Go to Rich Results Test: Visit search.google.com/test/rich-results
- Enter URL or code: Enter your page URL or paste your HTML code
- Test: Click “Test URL” or “Test Code”
- Review results: Check for errors, warnings, and valid schema
- Fix issues: Address any errors or warnings
Schema.org Validator
Use the Schema.org validator to check your schema:- Go to validator: Visit validator.schema.org
- Enter URL or code: Enter your page URL or paste your JSON-LD code
- Validate: Click “Validate”
- Review results: Check for errors and warnings
- Fix issues: Address any errors or warnings
Common Schema Errors
- Missing required properties: Ensure all required properties are included
- Invalid date formats: Use ISO 8601 format for dates
- Invalid URLs: Ensure all URLs are valid and accessible
- Invalid JSON: Ensure JSON is valid and properly formatted
- Wrong schema type: Use the correct schema type for your content
Best Practices
Schema Implementation
- Use JSON-LD: Prefer JSON-LD format over microdata or RDFa
- Place in head or body: Place schema in
<head>or<body>of your HTML - Validate regularly: Test your schema markup regularly
- Keep updated: Update schema when content changes
- Use correct types: Use the correct schema types for your content
Schema Content
- Accurate information: Ensure schema data matches your actual content
- Complete data: Include all relevant properties
- Valid formats: Use valid formats for dates, URLs, and other properties
- Unique content: Ensure schema data is unique to each page
Testing and Monitoring
- Test before publishing: Validate schema before publishing
- Monitor rich results: Check if rich results appear in search
- Fix errors quickly: Address schema errors as soon as possible
- Stay updated: Keep up with schema markup updates and best practices
Common Issues
Schema Not Showing in Rich Results
Problem: Schema is valid but not showing in rich results. Solution:- Rich results aren’t guaranteed—Google decides when to show them
- Ensure your content meets quality guidelines
- Wait for Google to re-crawl and re-index your content
- Check that your schema matches your actual content
Schema Errors
Problem: Schema validation shows errors. Solution:- Fix invalid JSON syntax
- Include all required properties
- Use correct data formats (dates, URLs, etc.)
- Use correct schema types
Duplicate Schema
Problem: Multiple schema blocks on the same page. Solution:- Combine related schema into a single JSON-LD block when possible
- Ensure schema doesn’t conflict
- Use appropriate schema types for each piece of content
Next Steps
- Learn about technical SEO basics for comprehensive SEO understanding
- Explore on-page SEO to optimize your content
- Review article publishing to ensure schema is included in your content