Please take a look at this:

See? Answers and its question are separated. I mean, they are not link to each other. Also when you open one of the answers, you will see this warning:

Which clearly says (as far as I understand), answers should be a property of a the question.

Ok, I've a Q/A website and implemented schema for it this way

See? You don't see any answer item there (noted that question has 5 answers) and all answers are a property of the question. If you click on the "Question" tab you can see the question with along all its answers.

Now I want to know, I did it right or I should make it like how SO did it?

1 Answer 1


If a suitable property exists to link items, the best practice is to use it.

For a Q/A page, you can

  • link the QAPage item and the Question item with the mainEntity property,
  • link the Question item and all Answer items with the suggestedAnswer property, and
  • if an answer got accepted, link the Question item and this Answer item with the acceptedAnswer property.

There is only one reason not do this: If you know that a structured data consumer (which you want to support) can’t work with this structure. I’m not aware of any, and it would certainly be a badly implemented consumer (standing in the way of valid structured data following best practices), but who knows what’s out there.

So in your case (unless you know of such a consumer), I would simply add itemprop="mainEntity" to the element for the Question, thereby connecting the QAPage, the Question, and all Answer items.

  • Thank you .. I've linked all items to each other, is it correct now? .. also still I'm wonder why SO doesn't do that.
    – Martin AJ
    Oct 23, 2018 at 20:41
  • 1
    @MartinAJ: Yes, with respect to connecting these three types, your structured data is correct.
    – unor
    Oct 23, 2018 at 21:33
  • @unor Any idea how can I link these two items to each other? (AboutPage and Person)
    – Shafizadeh
    Nov 2, 2018 at 13:17
  • @Shafizadeh: Please don’t ask questions on comments that aren’t closely related to the Q/A post’s topic. -- Instead, post a new question and provide all necessary details: what is the relation between the two items, did you find properties that you wonder about or ruled out etc.
    – unor
    Nov 2, 2018 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.