TypeScript
Schema

Quiz Schema

Schema.org Quiz

  • Type: defineQuiz(input?: Quiz)
    Describes a set of educational flashcards for Google's Education Q&A feature.

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

  • @type defaults to Quiz.
  • @id defaults to ${canonicalUrl}#quiz.
  • Questions resolve with Question and Answer defaults.
  • Educational alignments resolve to AlignmentObject.
  • A root Quiz references the primary WebPage through mainEntityOfPage.
Did this page help you?