{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-faq-3d019e69f363","title":"Add FAQPage Schema Markup for SEO","summary":"Generate or validate FAQPage structured data to improve rich results in Google Search, ensuring that each question has a visible answer on the page.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-faq-3d019e69f363","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-faq-3d019e69f363","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-faq-3d019e69f363.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-faq-3d019e69f363\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure that the FAQPage schema is only added to pages with visible FAQ-style content. Each question must have a corresponding visible answer on the page, and the schema must be validated using Google's Rich Results Test.","instructions":"---\nname: faq\ndescription: \"Use when adding FAQ sections to landing pages or blog posts, generating FAQPage JSON-LD from existing Q&A content, or validating that structured data on pages with FAQ sections is syntactically and semantically correct.\"\nmetadata:\n  category: seo\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/seo\/faq\n---\n\n# Add FAQPage schema markup\n\nValid FAQPage structured data can generate rich results in Google Search, displaying expandable question-and-answer pairs directly in the SERP. This increases click-through rate and SERP real estate without requiring a higher ranking position.\n\n## Quick Reference\n\n- Add `FAQPage` JSON-LD with `mainEntity` question\/answer pairs to pages that contain FAQ sections\n- Each `Question` must include `acceptedAnswer` with an `Answer` type containing the `text` property\n- Only use FAQPage schema when the page actually contains FAQ-style question-and-answer content visible to users\n\n## Check\n\nCheck pages that contain FAQ or Q&A sections. For each: (1) Is there a `<script type=\"application\/ld+json\">` block with `\"@type\": \"FAQPage\"`? (2) Does it include a `mainEntity` array of `Question` objects? (3) Does each `Question` have a `name` (the question text) and an `acceptedAnswer` with `\"@type\": \"Answer\"` and a `text` property? (4) Does the schema content match what is visible on the page?\n\n## Fix\n\n1. Identify pages with FAQ-style content (a section of questions and answers visible to users).\n2. Add a JSON-LD script to the page `<head>` or `<body>`:\n```json\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"How do I reset my password?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Click 'Forgot password' on the login page and enter your email address. You will receive a reset link within 5 minutes.\"\n      }\n    }\n  ]\n}\n```\n3. Validate the markup using Google's Rich Results Test at https:\/\/search.google.com\/test\/rich-results.\n4. Ensure every question in the schema has a corresponding visible answer on the page.\n\n\n## Explain\n\nFAQPage structured data enables Google to display expandable Q&A pairs directly in search results as a rich result. This increases the page's visible footprint in the SERP and can improve click-through rate. Invalid or mismatched schema (questions in markup not visible on page) will cause Google to ignore it and may trigger a manual action.\n\n## Code Review\n\nParse all `<script type=\"application\/ld+json\">` blocks. Find any with `\"@type\": \"FAQPage\"`. Validate that `mainEntity` is an array, each item has `\"@type\": \"Question\"`, `name` is a non-empty string, and `acceptedAnswer` is an object with `\"@type\": \"Answer\"` and a non-empty `text`. Cross-reference each question in the schema against visible question elements on the page.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/seo\/faq\n","use_cases":["Enhance landing pages or blog posts with FAQ sections to appear as rich results in Google Search.","Validate existing FAQPage schema to ensure it matches visible content on the page."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/faq\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:04:59.000000Z","updated_at":"2026-11-23T04:55:08.000000Z","seo_title":"Add FAQPage schema for rich search results","seo_description":"Use FAQPage schema markup to display expandable Q&A pairs in Google Search and improve click-through rates.","seo_keywords":["FAQPage schema markup","Google rich results","SEO FAQ structure","Validate FAQ schema","Expandable Q&A in search"]}}