Schema
Quiz Schema
Schema.org Quiz
- Type:
defineQuiz(input?: Quiz)
Describes a set of educational flashcards for Google's Education Q&A feature.
Useful Links
Example
defineQuiz({
about: {
'@type': 'Thing',
'name': 'Cell transport',
},
educationalAlignment: {
alignmentType: 'educationalSubject',
targetName: 'Biology',
},
hasPart: {
text: 'What protects the contents of a cell?',
eduQuestionType: 'Flashcard',
acceptedAnswer: 'Cell membrane',
},
})
Each hasPart question requires text, eduQuestionType: 'Flashcard', and one acceptedAnswer.
Defaults and resolves
@typedefaults toQuiz.@iddefaults to${canonicalUrl}#quiz.- Questions resolve with
QuestionandAnswerdefaults. - Educational alignments resolve to
AlignmentObject. - A root Quiz references the primary WebPage through
mainEntityOfPage.
Did this page help you?
Question Schema
Use defineQuestion() to add Question and Answer structured data and connect FAQPage mainEntity references.
Recipe Schema Markup: JSON-LD Example and API
Add recipe schema markup with defineRecipe(). See Recipe JSON-LD with ingredients and steps, plus the name and image that Google requires.