> Question and Answer JSON-LD Schema Example
JSON-LD sample code for question and answers including live examples from places all throughout the web, updated for 2025.
- published
- modified
- size
- 0.6K
- path
- /question-and-answer/
Last updated February 18, 2025 by Patrick Coombe
Question and Answers are a hot topic in SEO right now. We don’t have too much info here for now, but here is some JSON-LD to get you started:
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "What does Google mean by E-A-T.",
"text": "Within the past few years, Google has started talking a lot about E-A-T in regards to SEO.",
"answerCount": 1,
"dateCreated": "2019-08-10T21:11Z",
"author": {
"@type": "Person",
"name": "Patrick Coombe"
},
"acceptedAnswer": {
"@type": "Answer",
"text": "In SEO, E-A-T stands for expertise, authority, and trustworthiness. It is a term derived directly from Google's own quality raters guidelines.",
"upvotecount": 1,
"dateCreated": "2019-08-12T21:11Z",
"url": "https://elite-strategies.com/learn-seo/on-page-seo/eat-ymyl/",
"author": {
"@type": "Person",
"name": "Patrick Coombe"
}
}
}
}
Here is another JSON-LD question and answer snippet found out in the wild in the form of a Quiz (inches to cm converter)
{
"@context": "https://schema.org/",
"@type": "Quiz",
"url": "https://byjus.com/maths/inches-to-cm-converter/",
"typicalAgeRange": "10-17",
"educationalLevel": "intermediate",
"assesses": "Attend this Quiz & Test your knowledge.",
"educationalAlignment": [
{
"@type": "AlignmentObject",
"alignmentType": "educationalSubject",
"targetName": "Maths"
},
{
"@type": "AlignmentObject",
"alignmentType": "educationalSubject",
"targetName": " Inches To Cm Converter"
}
],
"name": "Quiz about Inches To Cm Converter",
"about": {
"@type": "Thing",
"name": "Inches To Cm Converter"
},
"hasPart": [
{
"@type": "Question",
"eduQuestionType": "Multiple choice",
"learningResourceType": "Practice problem",
"name": "Recollect the concept of Inches To Cm Converter to solve the questions.",
"text": "1 inch is equal to how many centimeters?",
"encodingFormat": "text/html",
"suggestedAnswer": [
{
"@type": "Answer",
"position": 0,
"encodingFormat": "text/html",
"text": "2",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 2,
"encodingFormat": "text/html",
"text": "2.7",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 3,
"encodingFormat": "text/html",
"text": "2.9",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
}
],
"acceptedAnswer": {
"@type": "Answer",
"position": 1,
"encodingFormat": "text/html",
"text": "2.54",
"answerExplanation": {
"@type": "Comment",
"text": "Correct answer is 2.54"
},
"comment": {
"@type": "Comment",
"text": "Option B is correct"
}
},
"comment": {
"@type": "Comment",
"text": "1 inch is equal to how many centimeters?"
}
},
{
"@type": "Question",
"eduQuestionType": "Multiple choice",
"learningResourceType": "Practice problem",
"name": "Recollect the concept of Inches To Cm Converter to solve the questions.",
"text": "1 cm = ___ inches",
"encodingFormat": "text/html",
"suggestedAnswer": [
{
"@type": "Answer",
"position": 1,
"encodingFormat": "text/html",
"text": "0.4",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 2,
"encodingFormat": "text/html",
"text": "0.51",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 3,
"encodingFormat": "text/html",
"text": "0.69",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
}
],
"acceptedAnswer": {
"@type": "Answer",
"position": 0,
"encodingFormat": "text/html",
"text": "0.39",
"answerExplanation": {
"@type": "Comment",
"text": "Correct answer is 0.39"
},
"comment": {
"@type": "Comment",
"text": "Option A is correct"
}
},
"comment": {
"@type": "Comment",
"text": "1 cm = ___ inches"
}
},
{
"@type": "Question",
"eduQuestionType": "Multiple choice",
"learningResourceType": "Practice problem",
"name": "Recollect the concept of Inches To Cm Converter to solve the questions.",
"text": "5 inches is equal to?",
"encodingFormat": "text/html",
"suggestedAnswer": [
{
"@type": "Answer",
"position": 0,
"encodingFormat": "text/html",
"text": "10.7 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 1,
"encodingFormat": "text/html",
"text": "11.7 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 3,
"encodingFormat": "text/html",
"text": "13.7 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
}
],
"acceptedAnswer": {
"@type": "Answer",
"position": 2,
"encodingFormat": "text/html",
"text": "12.7 cm",
"answerExplanation": {
"@type": "Comment",
"text": "Correct answer is 12.7 cm"
},
"comment": {
"@type": "Comment",
"text": "Option C is correct"
}
},
"comment": {
"@type": "Comment",
"text": "5 inches is equal to?"
}
},
{
"@type": "Question",
"eduQuestionType": "Multiple choice",
"learningResourceType": "Practice problem",
"name": "Recollect the concept of Inches To Cm Converter to solve the questions.",
"text": "Half inch is equal to how many centimeter?",
"encodingFormat": "text/html",
"suggestedAnswer": [
{
"@type": "Answer",
"position": 1,
"encodingFormat": "text/html",
"text": "1.07 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 2,
"encodingFormat": "text/html",
"text": "1.17 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 3,
"encodingFormat": "text/html",
"text": "2.54 cm",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
}
],
"acceptedAnswer": {
"@type": "Answer",
"position": 0,
"encodingFormat": "text/html",
"text": "1.27 cm",
"answerExplanation": {
"@type": "Comment",
"text": "Correct answer is 1.27 cm"
},
"comment": {
"@type": "Comment",
"text": "Option A is correct"
}
},
"comment": {
"@type": "Comment",
"text": "Half inch is equal to how many centimeter?"
}
},
{
"@type": "Question",
"eduQuestionType": "Multiple choice",
"learningResourceType": "Practice problem",
"name": "Recollect the concept of Inches To Cm Converter to solve the questions.",
"text": "How to convert inch to centimeters?",
"encodingFormat": "text/html",
"suggestedAnswer": [
{
"@type": "Answer",
"position": 0,
"encodingFormat": "text/html",
"text": "Divide by 2.54",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 2,
"encodingFormat": "text/html",
"text": "Divide by 0.39",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
},
{
"@type": "Answer",
"position": 3,
"encodingFormat": "text/html",
"text": "Multiply by 0.39",
"comment": {
"@type": "Comment",
"text": "It is wrong option."
}
}
],
"acceptedAnswer": {
"@type": "Answer",
"position": 1,
"encodingFormat": "text/html",
"text": "Multiply by 2.54",
"answerExplanation": {
"@type": "Comment",
"text": "Correct answer is Multiply by 2.54"
},
"comment": {
"@type": "Comment",
"text": "Option B is correct"
}
},
"comment": {
"@type": "Comment",
"text": "How to convert inch to centimeters?"
}
}
]
}