What is schema markup?▼
Schema markup (structured data) is code you add to your website to help search engines understand your content better. It can result in rich results (rich snippets) in Google Search, including star ratings, FAQs, recipe cards, and more.
What is JSON-LD?▼
JSON-LD (JavaScript Object Notation for Linked Data) is Google's recommended format for structured data. It's a script tag added to your page's HTML that contains schema markup in JSON format. It's separate from your page content, making it easy to add and maintain.
Where should I add the schema markup?▼
Add the generated <script type="application/ld+json"> tag in the <head> section of your HTML page, or just before the closing </body> tag. In Next.js, you can use the Script component or dangerouslySetInnerHTML in your layout.
How do I test my schema markup?▼
Use Google's Rich Results Test (search.google.com/test/rich-results) to validate your schema markup. You can paste a URL or code snippet. Google Search Console also has a rich results report.
Which schema types support rich results in Google?▼
Google supports rich results for Article, FAQ, Product, LocalBusiness, Organization, HowTo, Recipe, Event, BreadcrumbList, and many more. Each type has specific required and recommended properties.