Quiz schema for flashcard pages and the education Q&A carousel

Quiz schema, in Google's education Q&A feature, marks up a page of flashcards: each card is a Question with the fixed eduQuestionType value Flashcard and a single acceptedAnswer, and all the cards sit under a Quiz in hasPart. Eligible pages can appear in the education Q&A carousel when students search for a topic.

The name misleads a lot of site owners. Despite the type being called Quiz, Google's feature takes flashcards only. A scored multiple-choice quiz, a personality test or a trivia game doesn't qualify, because every question must be a Flashcard. A page with one question and user-submitted answers belongs under QAPage instead.

Don't confuse this with practice problems, a separate Google feature that also used Quiz markup, for practice exercises. Google stopped showing practice problems and removed their documentation in January 2026. The flashcard feature on this page is still documented and live.

JSON-LD example

Copy this into a <script type="application/ld+json"> tag and replace the values with your own.

json
{
  "@context": "https://schema.org",
  "@type": "Quiz",
  "about": {
    "@type": "Thing",
    "name": "The water cycle"
  },
  "educationalAlignment": [
    {
      "@type": "AlignmentObject",
      "alignmentType": "educationalSubject",
      "targetName": "Earth Science"
    },
    {
      "@type": "AlignmentObject",
      "alignmentType": "educationalLevel",
      "targetName": "Grade 5"
    }
  ],
  "hasPart": [
    {
      "@type": "Question",
      "eduQuestionType": "Flashcard",
      "text": "What is the process called when water vapor cools and turns back into liquid droplets?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Condensation"
      }
    },
    {
      "@type": "Question",
      "eduQuestionType": "Flashcard",
      "text": "What is the term for water released into the air by plants through their leaves?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Transpiration"
      }
    }
  ]
}

Properties

PropertyStatusWhat it is
hasPartRequiredOne Question per flashcard. Repeat it for every card on the page.
Question.eduQuestionTypeRequiredThe fixed value Flashcard. Pages with any other question type aren't eligible.
Question.textRequiredThe full text of the card's question side.
Question.acceptedAnswerRequiredOne Answer with the full text of the card's answer side. Only one per Question.
about / about.nameRecommendedThe concept the set covers, such as Cell Transport. It can repeat.
educationalAlignmentRecommendedAn AlignmentObject tying the set to a subject (alignmentType educationalSubject) or a grade or standard (educationalLevel).
educationalAlignment.targetNameRecommendedThe subject, grade or standard, such as Biology or Grade 7: Cell Structure.

Flashcards only, visible on the page

Google's technical rules for this feature are short and strict:

  • Every question uses Flashcard. Mixing in other question types makes the page ineligible.
  • Put the markup on the most detailed page. A flashcard set about photosynthesis gets it, not the Biology index page linking to 40 sets. Pages without questions shouldn't carry it.
  • Questions must be visible. A set that lives only in a downloadable PDF or a data file doesn't count; the questions have to be on the page itself.

Content rules come on top. The page must contain education questions with answers that actually answer them, at least one pair, and it follows the same guidelines as Q&A pages.

Aligning a set to a subject and grade

educationalAlignment is recommended, and it is how Google matches flashcards to searches organized around curricula. Repeat it to give both a subject and a level: educationalSubject with a target such as Chemistry, and educationalLevel with a grade or a named standard.

Google cites Common Core State Standards, Texas Essential Knowledge and Skills (TEKS), Virginia Standards of Learning, BC Performance Standards, Alberta Programs of Study, the Australian Curriculum, the Victorian Curriculum and the UK National Curriculum as examples. Use the standard's own naming where you can, so a teacher searching for a TEKS code finds cards aligned to it.

Flashcard sets on WordPress

Most WordPress quiz plugins build scored multiple-choice tests, which is the one format this feature excludes, so their built-in markup, if any, won't help here. Flashcard sets are easier to handle as a custom post type or a repeater field with question and answer pairs, rendered as visible cards on the page.

Generate the markup from the same fields and append it with Hydrogen SEO's hydrogen_seo_schemas filter:

php
add_filter( 'hydrogen_seo_schemas', function ( $schemas ) {
    if ( is_singular( 'flashcard_set' ) ) {
        $cards = [];
        foreach ( (array) get_post_meta( get_queried_object_id(), '_cards', true ) as $card ) {
            $cards[] = [
                '@type'           => 'Question',
                'eduQuestionType' => 'Flashcard',
                'text'            => $card['q'],
                'acceptedAnswer'  => [ '@type' => 'Answer', 'text' => $card['a'] ],
            ];
        }
        if ( $cards ) {
            $schemas[] = [ '@context' => 'https://schema.org', '@type' => 'Quiz', 'hasPart' => $cards ];
        }
    }
    return $schemas;
} );

If a flip-card design hides the answer until someone clicks, keep the answer text in the HTML so it matches the markup.

Accuracy is reviewed

Google says it runs quality and educational reviews on these pages, and if enough of your content is inaccurate, all or some of your Q&A pages can lose eligibility until you fix it. For user-built flashcard libraries, that makes moderation part of your SEO: a set with wrong answers can hurt other sets on the site. Validate a set's JSON-LD with the JSON-LD checker before scaling the template to thousands of pages.

Common questions

Can I use Quiz markup for a multiple-choice quiz?

Not for this feature. Google's education Q&A carousel accepts only questions with eduQuestionType set to Flashcard.

Which languages does the carousel support?

English, Portuguese and Vietnamese in all regions where Google Search is available, and Spanish in Mexico.

Is educationalAlignment required?

No, it's recommended. It helps Google connect flashcards to subjects, grades and learning standards.

Can my flashcards be in a PDF?

The PDF alone won't qualify. Questions must be visible on the web page itself.