What is JSON-LD?
JSON-LD (JavaScript Object Notation for Linked Data) is the recommended format for adding structured data to web pages. It helps search engines understand your content and can enable rich results in search.Common Schema Types
| Schema Type | Use Case | Rich Result ||-------------|----------|-------------|
| FAQPage | FAQ sections | Expandable Q&A in search |
| Article | Blog posts | Enhanced article snippet |
| Product | Product pages | Price, rating, availability |
| WebApplication | Tools/apps | App details in search |
| Organization | Company info | Knowledge panel |
Example
html
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is an AI chatbot?",
"acceptedAnswer": {
"@type": "Answer",
"text": "An AI chatbot is..."
}
}]
}
</script>Best Practices
•Use JSON-LD format (recommended by Google over microdata/RDFa)
•Only mark up visible content on the page
•Validate with Google's Rich Results Test
•Keep structured data accurate and up-to-date