XooCode(){

Answer

Answer is a Comment subtype for the reply to a Question. Properties: answerExplanation (CreativeWork — extended explanation) and parentItem (Comment / CreativeWork — the question being answered). Inherits text, upvoteCount, author, dateCreated from Comment.

Full example of schema.org/Answer json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/Answer
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Answer",
  "text": "FAQPage rich results were restricted to authoritative sources in 2023; pages outside news / health domains generally don't render the accordion anymore.",
  "upvoteCount": 47,
  "author": { "@type": "Person", "name": "Sam Xoo" },
  "dateCreated": "2026-03-12",
  "url": "https://xoocode.example/qa/faqpage-not-rendering#accepted"
}
</script>

Minimal valid version

The smallest markup that still produces a valid Answer entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/Answer (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Answer",
  "text": "Short accepted answer."
}
</script>

Google rich results this unlocks

Answer is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). Answer becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common Answer mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    Answer without acceptedAnswer link from Question

    Wrong
    Answer node standalone on a Q&A page
    Right
    Question.acceptedAnswer → Answer node (and Question.suggestedAnswer for alternatives)

    Q&A rich results fire from Question; an orphan Answer isn't detected.

Also mentioned in 3 other examples

Answer also appears in FAQPage, QAPage, and Question. See the full Answer schema page for every reference.

About the example data

The accepted answer on "Why doesn't Google render my FAQPage?" on the Xoo Code Q&A knowledge base.

Comments

Loading comments...

Leave a comment