How do you implement Question and Answer schema correctly?
Implementing Question and Answer structured data means giving an accurate description of a page whose main content is one particular question with at least one answer after it. Under Google's QAPage structured data, users have to be able to post answers to that question on the page.
At its core, a QAPage holds a Question, and that question has at least one Answer object tied to it. Mark the accepted answer with acceptedAnswer, and mark any others with suggestedAnswer.
QAPage is wrong for a standard FAQ that the company wrote itself and where visitors have no way to post alternative answers. There, FAQPage or some other suitable page-level type fits better.
"Question and Answer schema" sounds easy. Yet in this corner of structured data, picking the right content model counts for more than pasting in a JSON-LD sample.
The Question and Answer types come from Schema.org, and QAPage stands for a webpage centered on one particular question and the answers to it.
So writing JSON-LD is not step one. Step one is working out if you truly have a Q&A page.
Which components make up Question and Answer schema?
QAPage
Marks the webpage as a question-and-answer page centered on one particular question.
Question
Stands for the particular question the page mainly deals with.
Answer
Stands for an answer posted in reply to that question.
Which rule comes first when you implement Q&A schema?
Confirm that you really have a Q&A page.
According to Google, QAPage markup fits a page that holds question-and-answer content and lets users post answers to the question.
Suppose a company has just published its own reply to a customer question, with no way for users to post alternative answers. That falls outside the QAPage model as Google describes it.
No single property in the JSON-LD matters as much as this distinction.
How do QAPage and FAQPage differ?
When does QAPage schema fit?
Typical cases where it fits
- A community site for questions and answers.
- A forum in which some users pose questions and others post answers.
- A support setting that lets users post alternative answers to one particular question.
- A page whose main subject is a single question, with the matching answers on that page.
What defines it is more than a question and an answer appearing on the page. The content model has to be a real question-and-answer setting.
When is QAPage schema the wrong choice?
Frequent cases where QAPage does not belong
- An ordinary company FAQ page that the business wrote in full.
- A service page with several customer questions answered by the company.
- A blog post that answers a question.
- A how-to guide that just happens to be phrased as a question.
- A product page with a brief question-and-answer section and no answers posted by users.
In all of these cases, question-and-answer wording on the page does not by itself turn the page into a QAPage.
How do you implement the Question entity?
A Question object stands for the particular question that is being asked.
Under Schema.org, Question means a specific question, and that includes one gathered in a frequently asked question document. Its supported properties include name, text, answerCount, acceptedAnswer and suggestedAnswer
Match the question to what the page shows
- Take the real question that users see.
- Never write a separate, keyword-stuffed variant just for the structured data.
- Check that readers can clearly pick out the question on the page.
- Confirm that the answer really addresses that question.
How do you implement the Answer entity?
The Answer type stands for an answer given in reply to a Question.
In a QAPage implementation, the answer text has to reflect the real answer visible to users on the page.
How do acceptedAnswer and suggestedAnswer differ?
acceptedAnswer
Marks the answer that was chosen or accepted as the best one for the question.
suggestedAnswer
Marks an answer that someone suggested, which may or may not be the accepted best one.
What happens when a question has several answers?
Questions with several answers are part of why the QAPage model exists at all.
One question may carry an accepted answer plus further suggested answers. Your structured data ought to mirror the real state of the page and never make up an answer hierarchy.
Reflect the actual discussion
When several answers posted by users appear on the page, the markup needs to describe them and how they relate accurately.
Being first or most prominent does not make an answer accepted. Apply that label only when the site's real system treats the answer as accepted.
What is answerCount for?
The answerCount property gives how many answers the question has received.
It matters most on real Q&A platforms, where one question can draw several answers from users.
Make sure the count is right
A page with four real answers must not be marked up as having ten. Structured data exists to describe the content underneath, not to fabricate extra signals.
How does QAPage link to the main Question?
The page needs to name the Question as its primary entity.
In concept, the relationship is as follows:
QAPage
The webpage centered on the question.
mainEntity
Names the primary Question that the page represents.
Answer
Holds the real response, or responses, tied to the Question.
How does properly structured QAPage JSON-LD look?
For a real Q&A page with user-generated answers, a simplified version might look as follows:
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How long does this service take?",
"text": "How long does this service normally take?",
"answerCount": 2,
"acceptedAnswer": {
"@type": "Answer",
"text": "Most projects are completed within four to six weeks."
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "The timeframe can vary depending on the project."
}
]
}
}
This sample shows the structure, yet the precise properties have to match your real page. Copy it word for word only if your page truly shares that content model.
Which implementation rules count the most?
- Have a real Q&A page. A question appearing on the page is not enough reason for QAPage.
- Let users post answers. Google's QAPage guidance treats this as a defining requirement.
- Name one primary Question. Center the page on a particular question, not on an assortment of unrelated FAQs.
- Reflect the real answers. Never make up answers or relationships that are absent from the page.
- Apply acceptedAnswer accurately. Mark an answer as accepted only if the site's real system treats it that way.
- Keep answerCount correct. The markup has to match the true count of answers.
- Keep markup in line with visible content. What machines read and what users see should describe one and the same page.
Which QAPage implementation mistake is most common?
Tagging a company FAQ as QAPage.
It happens because, visually, the content resembles a question with an answer after it.
Yet an FAQ written by a company and a Q&A page built from user contributions are separate content models.
Say your company writes "What services do you offer?" and then gives its own official answer, and visitors have no way to post alternatives. That falls short of Google's QAPage model.
What should a company use on a standard FAQ page?
Don't turn a standard business FAQ into QAPage just because every entry pairs a question with an answer.
Our earlier article on FAQPage schema covers this very distinction: the structured-data type should follow from the real content model of the page.
FAQ written by the company
The company posts questions with official answers. Visitors have no way to post rival answers.
QAPage does not apply.
Community Q&A
A single question is shown, and users are able to post answers that become part of the discussion.
QAPage may fit.
Does properly implemented QAPage schema lead to Google rich results?
The FAQ rich-result feature covered in the earlier article has been retired. By contrast, Google currently documents a Q&A rich-result experience for QAPage content that qualifies.
Correct markup makes you eligible. It does not entitle you to anything.
Your page must still meet Google's requirements for content, technical setup and structured data, and in the end Google decides how qualifying content appears.
Do the question and its answers need to be visible on the page?
Yes. Structured data has to describe content users are truly able to reach on the page.
Google stresses again and again the link between structured data and what users can access. Never use structured data to build a hidden version of the page that holds information visitors have no way of seeing.
Users and machines should get the same story from the page
- The main question has to be visible.
- Every answer in the markup has to be present on the page.
- The real interface has to show accepted-answer status.
- How many answers there are, and what kind, are details that must agree with the visible content.
Can a single QAPage hold many unrelated questions?
As a rule, you should not be aiming to represent that model.
QAPage centers on one particular Question along with its answers. A page holding a big set of independent company FAQs has a different content structure.
One page, one main Q&A subject
Twenty unrelated questions paired with twenty official answers add up to an FAQ or knowledge-base structure, not to one community Q&A discussion.
Don't squeeze such content into QAPage just because, technically, the markup holds Question and Answer objects.
How do you test Question and Answer structured data?
Test once you have settled the content model and put the markup in place.
Suggested validation steps
- Verify that the page truly qualifies as a QAPage.
- Verify that users are able to post answers where that is required.
- Check the JSON-LD syntax.
- Make sure the relationships between Question and Answer are right.
- Run Google's available structured-data testing tools to find implementation problems.
- After deployment, inspect the live URL and confirm the markup really is being served.
- Keep watching the implementation once it is published, since changes to templates can introduce structured-data errors.
Which mistakes should you steer clear of?
QAPage on FAQs
The biggest error is mixing up a company FAQ with a Q&A page built from user contributions.
Made-up accepted answers
Label an answer accepted only when the real site recognizes it that way.
Hidden content
Never build structured data that holds information users have no way to reach on the page.
Inflated answer counts
The count of answers in the markup has to match the real Q&A content.
QAPage on an article
An ordinary article that answers a question does not become a QAPage by default.
Schema as a ranking shortcut
Structured data helps machines understand a page and makes it eligible for features. Rankings are not guaranteed by it.
How do you tell if QAPage is the right schema?
- Is there a single primary question?
- Are answers to that question really on the page?
- Are users able to post answers?
- Do the answers truly belong to a Q&A discussion?
- Is the markup an accurate picture of what users see?
- Does the page differ from a standard company FAQ?
- Are the relationships among QAPage, Question and Answer set up correctly?
Does Question and Answer schema help machines make sense of a Q&A page?
It can give machines explicit, readable relationships linking a page, its main question and the answers to it.
Systems able to interpret Schema.org structured data can find that useful.
Even so, never pitch it as something that guarantees an AI system will quote an answer, cite the page or recommend the site.
Structured data gives context, not orders
Markup informs systems about what a page represents. It cannot compel them to use that information in any specific way.
The question itself, the quality of the answer, authority and the content as a whole still matter.
Which correct implementation model is the simplest?
Establish the page
Confirm that the page truly represents a Q&A discussion.
Establish the question
Make Question the primary entity that the page represents.
Mark up the answers
Describe the real answers accurately, with accepted or suggested status where it applies.
Bottom line
How do you implement Question and Answer schema correctly?
Begin with the content model and leave the markup for later. A real Q&A page centers on one particular question along with its answers, and users can post answers wherever Google's QAPage guidelines require that.
Mark the page up as QAPage, name the main question with Question, and describe its answers accurately through Answer. Reserve acceptedAnswer for an answer that truly has been accepted, and apply suggestedAnswer when further suggested answers really appear on the page.
Above all, keep QAPage and a standard business FAQ apart. When your company posts its own questions with official answers, and visitors have no way to offer alternatives, QAPage is the wrong model.
Proper Question and Answer schema describes a real Q&A relationship. A question with an answer after it happening to appear on a page is never reason enough to use it.