練習題 (Quiz) 結構化資料

您可以透過結構化資料來標記練習題內容,讓學生、教師和家長能在線上輕鬆找到您的教育與學習教材。本指南將說明如何在網頁上實作這個結構定義。加入結構化資料後,Google 的搜尋結果就會以特別設計的使用者體驗來呈現您的練習題內容。

Google 搜尋中的練習題複合式搜尋結果

如何新增結構化資料

結構化資料是一種標準化格式,能夠提供網頁相關資訊並分類網頁內容。如果您是第一次使用結構化資料,請參閱這篇文章,進一步瞭解結構化資料的運作方式。

以下簡要說明如何建立、測試及發布結構化資料。

  1. 新增必要屬性。根據您使用的格式,瞭解要在網頁中的什麼位置插入結構化資料
  2. 遵循指南規範
  3. 使用複合式搜尋結果測試驗證程式碼,並修正所有重大錯誤。此外,我們也建議您修正工具中可能標記的任何非重大問題,因為這有助於改善結構化資料的品質 (但並非符合複合式搜尋結果的顯示條件)。
  4. 部署幾個包含結構化資料的網頁,並使用網址檢查工具測試 Google 轉譯網頁的情形。請確認 Google 可以存取您的網頁,且網頁並未遭到 robots.txt 檔案或 noindex 標記封鎖,也未設有登入規定。如果網頁看起來沒問題,您可以要求 Google 重新檢索您的網址
  5. 為了讓 Google 掌握日後的異動內容,建議您提交 Sitemap。您可以使用 Search Console Sitemap API 自動執行這項操作。

功能適用情況

練習題功能僅支援英文,適用於可使用 Google 搜尋服務的所有地區。這項功能適用於電腦和行動裝置,但僅能支援數學和科學主題的單選和多選題型。

範例

只包含一道題目的測驗

以下測驗範例只包含一道題目,正確答案也只有一個。

<html>
  <head>
    <title>Quiz about fractions</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org/",
      "@type": "Quiz",
      "name": "Quiz about fractions",
      "hasPart": {
        "@type": "Question",
        "typicalAgeRange": "7-12",
        "educationalAlignment": [
          {
            "@type": "AlignmentObject",
            "alignmentType": "educationalSubject",
            "targetName": "Mathematics"
          },
          {
            "@type": "AlignmentObject",
            "alignmentType": "educationalSubject",
            "targetName": "Algebra"
          },
          {
            "@type": "AlignmentObject",
            "alignmentType": "educationalLevel",
            "targetName": "Grade 5 » Number and Operations—Fractions » Apply and extend previous understandings of multiplication and division. » 3",
            "educationalFramework": "Common Core",
            "targetUrl": "https://www.corestandards.org/Math/Content/5/NF/B/3/"
          }
        ],
        "about": {
          "@type": "Thing",
          "name": "Fractions"
        },
        "educationalLevel": "intermediate",
        "eduQuestionType": "Multiple choice",
        "learningResourceType": "Practice problem",
        "assesses": "Multiplying fractions by whole numbers",
        "name": "Choose the model",
        "comment": {
          "@type": "Comment",
          "text": "This is a hint about the question."
        },
        "encodingFormat": "text/markdown",
        "text": "Which model represents the product $$2 * \\frac{2}{3}$$?",
        "suggestedAnswer": [
          {
            "@type": "Answer",
            "position": 0,
            "encodingFormat": "text/html",
            "text": "<img src=\"www.test.com/practice-problems-fractions/…image2.png\" alt=\"Answer 2\" />",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint about the answer."
            }
          }
        ],
        "acceptedAnswer": {
          "@type": "Answer",
          "position": 1,
          "encodingFormat": "text/html",
          "text": "<img src=\"www.test.com/practice-problems-fractions/…image1.png\" alt=\"Answer 1\" />",
          "comment": {
            "@type": "Comment",
            "text": "This is a hint about the answer."
          },
          "answerExplanation": {
            "@type": "Comment",
            "text": "This is a full explanation on how this answer was achieved."
          }
        }
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

只包含一道題目和複選選項的測驗

以下測驗範例只包含一道題目,該題擁有多個正確答案。

<html>
  <head>
    <title>Quiz about laws of Physics</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org/",
      "@type": "Quiz",
      "name": "Quiz about laws of physics",
      "about": {
        "@type": "Thing",
        "name": "Laws of Physics And Applications"
      },
      "educationalLevel": "intermediate",
      "assesses": "Laws of physics",
      "hasPart": {
        "@type": "Question",
        "eduQuestionType": "Checkbox",
        "learningResourceType": "Practice problem",
        "name": "Laws of Physics And Applications",
        "typicalAgeRange": "12-15",
        "text": "Identify laws of Physics. (Select all valid answers)",
        "suggestedAnswer": [
          {
            "@type": "Answer",
            "position": 0,
            "text": "Nevada's Law",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            }
          },
          {
            "@type": "Answer",
            "position": 2,
            "text": "EUA law",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            }
          }
        ],
        "acceptedAnswer": [
          {
            "@type": "Answer",
            "position": 1,
            "text": "Newton's law",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            },
            "answerExplanation": {
              "@type": "Comment",
              "text": "This is a full explanation on how this answer was achieved."
            }
          },
          {
            "@type": "Answer",
            "position": 3,
            "text": "Ohm's law",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            },
            "answerExplanation": {
              "@type": "Comment",
              "text": "This is a full explanation on how this answer was achieved."
            }
          }
        ]
      }
    }
    </script>
  </head>
  <body>
  </body>
</html>

包含多道題目的測驗

以下測驗範例包含多組題目及其答案。

<html>
  <head>
    <title>Quiz about displacement, velocity and time</title>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org/",
      "@type": "Quiz",
      "typicalAgeRange": "7-12",
      "educationalLevel": "intermediate",
      "assesses": "Velocity and speed",
      "educationalAlignment": [
        {
          "@type": "AlignmentObject",
          "alignmentType": "educationalSubject",
          "targetName": "Science"
        },
        {
          "@type": "AlignmentObject",
          "alignmentType": "educationalSubject",
          "targetName": "Physics"
        }
      ],
      "name": "Quiz about displacement, velocity and time",
      "about": {
        "@type": "Thing",
        "name": "Displacement, velocity, and time"
      },
      "hasPart": [
        {
          "@type": "Question",
          "eduQuestionType": "Multiple choice",
          "learningResourceType": "Practice problem",
          "name": "Average velocity and average speed from graphs",
          "text": "A bug crawls on a wall. What is the average velocity of the bug between the times $$t = 1s$$ and $$t = 10s$$?",
          "comment": {
            "@type": "Comment",
            "text": "This is a hint about the question."
          },
          "encodingFormat": "text/markdown",
          "suggestedAnswer": [
            {
              "@type": "Answer",
              "position": 0,
              "encodingFormat": "text/markdown",
              "text": "$$0.5 \\frac{m}{s}$$",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            },
            {
              "@type": "Answer",
              "position": 1,
              "encodingFormat": "text/markdown",
              "text": "$$-0.5 \\frac{m}{s}$$",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            },
            {
              "@type": "Answer",
              "position": 3,
              "encodingFormat": "text/markdown",
              "text": "$$1.5 \\frac{m}{s}$$",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            }
          ],
          "acceptedAnswer": {
            "@type": "Answer",
            "position": 2,
            "encodingFormat": "text/markdown",
            "text": "$$0 \\frac{m}{s}$$",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            }
          }
        },
        {
          "@type": "Question",
          "eduQuestionType": "Multiple choice",
          "learningResourceType": "Practice problem",
          "name": "Average velocity and average speed from graphs",
          "text": "A swimmer motion is shown on the following graph of position x vs. time t. What is the average speed?",
          "encodingFormat": "text/markdown",
          "comment": {
            "@type": "Comment",
            "text": "This is a hint about the question."
          },
          "suggestedAnswer": [
            {
              "@type": "Answer",
              "position": 0,
              "text": "1",
              "encodingFormat": "text/html",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            },
            {
              "@type": "Answer",
              "position": 2,
              "text": "3",
              "encodingFormat": "text/html",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            },
            {
              "@type": "Answer",
              "position": 3,
              "text": "4",
              "encodingFormat": "text/html",
              "comment": {
                "@type": "Comment",
                "text": "This is a hint"
              }
            }
          ],
          "acceptedAnswer": {
            "@type": "Answer",
            "position": 1,
            "text": "2",
            "encodingFormat": "text/html",
            "comment": {
              "@type": "Comment",
              "text": "This is a hint"
            },
            "answerExplanation": {
              "@type": "Comment",
              "text": "This is a full explanation on how this answer was achieved."
            }
          }
        }
      ]
    }
    </script>
  </head>
  <body>
  </body>
</html>

指南規範

您必須遵守以下規範,Google 搜尋服務才會顯示您的練習題內容。

技術指南

  • 請盡可能將結構化資料放在資訊最為詳細的分葉頁面,不要放在沒有練習題的網頁上。
  • 請針對您想突顯複合式搜尋結果的練習題加上 Quiz 屬性。 結構化資料必須位於供使用者與練習題互動的網頁上。
  • 您的網頁須包含所有必要的結構化資料屬性
  • 每個主題至少要標記兩個練習題;例如,「二次方程式」這個概念要有兩個練習題。請著重標記想用練習題複合式搜尋結果呈現的概念和問題。這些內容可位於不同網頁上。
  • 使用者必須要能順利存取您網站中的練習題;也就是說,練習題不能存放在資料檔或 PDF 檔中。
  • 確認 Googlebot 能夠有效檢索網站
  • 如果您的網站上有多個網址代管同一個練習題,請針對每個網頁使用標準網址
  • 如果練習題為純文字:
    • 題目的長度上限為 320 個半形字元。
    • 每個答案選項的長度上限為 70 個半形字元。
  • 如果練習題同時包含文字和圖片:
    • 題目的長度上限為 160 個半形字元。
    • 圖片的高度不得超過 200 像素。
  • 存取方式:禁止標記要求登入或藏於付費牆後的練習題。當使用者在 Google 上透過這項功能前往您的網站後,就要能夠存取練習題內容。其他內容則可以要求登入或採用付費牆。
  • 不實陳述或行為:我們嚴禁蓄意欺騙或誤導使用者的練習題,這包括誤將問題標記為無關的主題。

內容指南

我們制定練習題內容指南的目的,在於確保使用者能找到確實相關的學習資源。如果我們發現有內容違反這些政策,將會以適當的方式回應這些內容,包括採取人工判決處罰,並從 Google 顯示的練習題功能中移除您的網頁。

粗俗不雅的用語

我們不允許練習題包含猥褻、不雅或令人反感用語。

廣告假冒為練習題

我們嚴禁偽裝成練習題的宣傳內容,例如由聯盟計畫等第三方張貼的內容。

如果有人向 Google 申訴練習題內容可能違法,我們會依據 Google 搜尋政策處理該內容。

品質

  • 透過這項功能呈現練習題內容時,您有責任確保內容正確無誤且品質優良。如果我們根據品質審查程序,發現您資料中的錯誤達到一定數量,可能會依照嚴重程度移除您所有或部分練習題,直到問題解決。這項規範在於確保達到下列要求:
    • 所標記的概念與題目相關
    • 題目、答案選項、提示和解答說明的格式與內容正確
    • 答案順序正確 (例如「以上皆非」不能放在第一個選項)
    • 圖片或公式與問題正確相關,且符合品質要求
    • 正確呈現數學符號並採用分隔符

標記教育標準

學習標準是指學生在各年級時應該瞭解和達成的學習目標。學習標準有許多用途,例如能夠連結內容或組成學習進度。標記與線上學習教材關聯的學習標準 (方法請參閱 educationalAlignmenthasPart.educationalAlignment 欄位下的說明),這麼做可協助 Google 根據這些標準整理相關資訊,並以最實用的方式提供給搜尋學習內容的使用者。以下是這個結構定義的概略總覽:

以下列舉幾項標準:

  • 州際共同核心標準 (Common Core State Standards)
  • 德州基本知識與技能 (Texas Essential Knowledge and Skills,TEKS)
  • 維吉尼亞州學習標準 (Virginia Standards of Learning,SOL)
  • 卑詩省表現標準 (BC Performance Standards)
  • 亞伯達省課程計畫 (Alberta Programs of Studies)
  • 澳洲中小學統一課程綱要 (The Australian Curriculum,由 ACARA 制定)
  • 維多利亞州課程綱要 F-10 (The Victorian Curriculum F-10)
  • 英國國定課程 (UK National Curriculum)

結構化資料類型定義

您的內容必須包含必要屬性,才能以複合式搜尋結果形式呈現。您也可以加入建議屬性,為結構化資料補充更多資訊,創造更優質的使用者體驗。

Quiz

Quiz 是一組練習題 (可以為一或多題),通常關於相同的概念或主題。

schema.org 內提供 Quiz 的完整定義。

必要屬性
about Thing

關於 Quiz 基礎概念的巢狀資訊。如果題目已具備 hasPart.about 屬性,則此屬性就不是必要屬性。

{
  "@type": "Quiz",
  "about": {
    "@type": "Thing"
  }
}
about.name Text

關於 Quiz 基礎概念的巢狀資訊。如果題目已具備 hasPart.about.name 屬性,則此屬性就不是必要屬性。此屬性允許多次輸入。

{
  "@type": "Quiz",
  "about": {
    "@type": "Thing",
    "name": "Fractions"
  }
}
hasPart Question

與測驗中特定練習題相關的巢狀資訊。請使用一個 hasPart 屬性來代表單一練習題。

如要為單一測驗加入多道練習題,請重複這個屬性。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question"
  }
}
hasPart.acceptedAnswer Answer

題目的正確答案。如果單一題目有多個正確答案,請重複這個屬性。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "acceptedAnswer": {
      "@type": "Answer"
    }
  }
}
hasPart.eduQuestionType Text

練習題的類型。對 Google 搜尋來說,這個屬性非常重要,關乎是否能正確呈現題目並檢查學生是否答對。針對每個問題,Google 會顯示最少兩個答案與最多六個答案。

請使用下列其中一個支援的值:

  • Multiple choice:只有一個正確答案。系統會以一組圓形按鈕顯示所有選項,而使用者只能選取其中之一。
  • Checkbox:有多個正確答案。系統會以一組核取方塊顯示所有選項,使用者可以勾選所有符合的答案。
{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "eduQuestionType": "Multiple choice"
  }
}
hasPart.learningResourceType Text

這個學習資源的類型。請使用 Practice problem 這個固定值。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "learningResourceType": "Practice problem"
  }
}
hasPart.suggestedAnswer Answer

該問題所有的其他答案,無論正確或非正確。如要指定多個答案,請重複使用這個屬性及其巢狀屬性。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
    }
  }
}
hasPart.suggestedAnswer.text Text

答案的內容,可以採用 Markdown 或 HTML。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "text": "$$x = 1$$"
    }
  }
}
hasPart.text Text

題目的內容,可以採用 Markdown 或 HTML。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "text": "Which diagram represents the product $$3 *\frac{2}{3}$$?"
  }
}
建議屬性
educationalAlignment AlignmentObject

測驗所符合的現有教育架構。您可以重複這個屬性,指定測驗所符合的學業領域,以及目標年級或教育標準。 您可以直接在 Quiz 中加入所符合的教育標準,或是在 Question 中更精確地指明各題標準。

{
  "@type": "Quiz",
  "educationalAlignment": []
}
educationalAlignment.alignmentType Text

統整學習資源與測驗架構節點的標準類別,Google 搜尋採用的是 LRMI 標準

請重複 alignmentType 來同時指定學業領域以及目標年級或教育標準。

  • 如要指定測驗的學業領域,請將 alignmentType 設為 educationalSubject
  • 如要指定測驗的目標年級或教育標準,請將 alignmentType 設為 educationalLevel

如有多個領域與子領域,可以插入多個物件。如要指定概念,請改用 about 屬性。

以下說明如何同時指定 educationalSubjecteducationalLevel

{
  "@type": "Quiz",
  "educationalAlignment": [
    {
      "@type": "AlignmentObject",
      "alignmentType": "educationalSubject",
      "targetName": "Mathematics"
    },
    {
      "@type": "AlignmentObject",
      "alignmentType": "educationalLevel",
      "targetName": "Fifth grade"
    }
  ]
}

如要參照教育標準 (例如「州際共同核心標準」),請使用 educationalAlignment.educationalFrameworkeducationalAlignment.targetUrl 屬性。

{
  "@type": "Quiz",
  "educationalAlignment: [
  {
    "@type": "AlignmentObject",
    "alignmentType": "educationalLevel",
    "educationalFramework": "Common Core",
    "targetName": "Grade 8: Expressions and Equations",
    "targetUrl": "https://www.corestandards.org/Math/Content/8/EE/A/2/"
    }
  ]
}
educationalAlignment.educationalFramework Text

測驗所符合的教育架構,例如「州際共同核心標準」。如要進一步瞭解這項屬性的重要性,請參閱標記教育標準一節。此屬性允許多次輸入。

educationalAlignment.targetName Text

現有教育架構的節點名稱,例如「8 年級:運算式和方程式」。

{
  "@type": "Quiz",
  "educationalAlignment: [
  {
    "@type": "AlignmentObject",
    "targetName": "Grade 8: Expressions and Equations"
    }
  ]
}
educationalAlignment.targetUrl URL

您所指定教育架構的網址。例如,州際共同核心標準中 8 年級數學學習標準的網址。

{
  "@type": "Quiz",
  "educationalAlignment: [
  {
    "@type": "AlignmentObject",
    "targetUrl": "https://www.corestandards.org/Math/Content/8/EE/A/2/"
    }
  ]
}
educationalLevel Text

測驗的難度。以下列舉幾個可用的值:

  • beginner
  • intermediate
  • advanced
{
  "@type": "Quiz",
  "educationalLevel": "beginner"
}
hasPart.about Thing

題目基礎概念的巢狀資訊。如果未指定 Quizabout 屬性,就必須使用 hasPart.about。此屬性允許多次輸入。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "about": {
      "@type": "Thing"
    }
  }
}
hasPart.about.name Text

題目基礎概念的名稱。如果未指定 Quizabout.name 屬性,就必須使用 hasPart.about.name

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "about": {
      "@type": "Thing",
      "name": "Fractions"
    }
  }
}
hasPart.acceptedAnswer.answerExplanation Comment

關於如何獲得此答案描述結果的詳細說明,通常只適用於正確答案。請在這個屬性中使用 hasPart.suggestedAnswer.comment.text 屬性來提供說明的內容。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "acceptedAnswer": {
      "@type": "Answer",
      "answerExplanation": {
        "@type": "Comment"
       }
    }
  }
}
hasPart.acceptedAnswer.answerExplanation.text Text

建議答案的說明內容。如要變更內容格式 (HTML 或 Markdown),請使用 encodingFormat。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "answerExplanation": {
        "@type": "Comment",
        "text": "*In order to get to this result..*",
        "encodingFormat": "text/markdown"
       }
    }
  }
}
hasPart.acceptedAnswer.comment Comment

關於答案的提示或解題建議,用以釐清該答案正確的原因。 請在這個屬性中使用 hasPart.acceptedAnswer.comment.text 屬性來提供提示的內容。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "acceptedAnswer": {
      "@type": "Answer",
      "comment": {
        "@type": "Comment"
      }
    }
  }
}
hasPart.acceptedAnswer.comment.text Text

建議答案的提示或解題建議內容。如要變更內容格式 (HTML 或 Markdown),請使用 encodingFormat。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "acceptedAnswer": {
      "@type": "Answer",
      "comment": {
        "@type": "Comment",
        "text": "<p>This is a hint</p>"
      }
    }
  }
}
hasPart.acceptedAnswer.position Integer

這個答案向使用者顯示時的位置。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "acceptedAnswer": {
      "@type": "Answer",
      "position": "2"
    }
  }
}
hasPart.assesses DefinedTermText

解決問題所需的技能。填入這項資訊可以提高練習題內容的曝光度。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "assesses": "Multiplying fractions by whole numbers"
  }
}
hasPart.comment Comment

有助解題的提示或建議。請在這個屬性中使用 hasPart.comment.text 屬性來提供提示的內容。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "comment": {
      "@type": "Comment"
    }
  }
}
hasPart.comment.text Text

題目的提示或解題建議內容。如要變更內容格式 (HTML 或 Markdown),請使用 encodingFormat。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "comment": {
      "@type": "Comment",
      "text": "<p>This is a hint</p>"
    }
  }
}
hasPart.educationalAlignment AlignmentObject

題目所符合的現有教育架構。這個屬性會覆寫 Quiz 物件所提供的教育標準。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "educationalAlignment": []
}
hasPart.educationalAlignment.alignmentType Text

統整學習資源與題目架構節點的標準類別,Google 搜尋採用的是 LRMI 標準

請重複 alignmentType 來同時指定學業領域以及目標年級或教育標準。

  • 如要指定題目的學業領域,請將 alignmentType 設為 educationalSubject
  • 如要指定題目的目標年級或教育標準,請將 alignmentType 設為 educationalLevel

如有多個領域與子領域,可以插入多個物件。如要指定概念,請改用 hasPart.about 屬性。

以下說明如何同時指定 educationalSubjecteducationalLevel

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "educationalAlignment": [
      {
      "@type": "AlignmentObject",
      "alignmentType": "educationalSubject",
      "targetName": "Mathematics"
      },
      {
      "@type": "AlignmentObject",
      "alignmentType": "educationalLevel",
      "targetName": "Fifth grade"
      }
    ]
  }
}

如要參照教育標準 (例如「州際共同核心標準」),請使用 hasPart.educationalAlignment.educationalFrameworkhasPart.educationalAlignment.targetUrl 屬性。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "educationalAlignment: [
      {
      "@type": "AlignmentObject",
      "alignmentType": "educationalLevel",
      "educationalFramework": "Common Core",
      "targetName": "Grade 8: Expressions and Equations",
      "targetUrl": "https://www.corestandards.org/Math/Content/8/EE/A/2/"
      }
    ]
  }
}
hasPart.educationalAlignment.educationalFramework Text

題目所符合的教育架構,例如「州際共同核心標準」。如要進一步瞭解這項屬性的重要性,請參閱標記教育標準一節。此屬性允許多次輸入。

hasPart.educationalAlignment.targetName Text

現有教育架構的節點名稱,例如「8 年級:運算式和方程式」。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "educationalAlignment: [
      {
      "@type": "AlignmentObject",
      "alignmentType": "educationalLevel",
      "targetName": "Grade 8: Expressions and Equations"
      }
    ]
  }
}
hasPart.educationalAlignment.targetUrl URL

您所指定該題目適用教育架構的網址。例如,州際共同核心標準中 8 年級數學學習標準的網址。

hasPart.educationalLevel Text

題目的難度,採文字形式。以下列舉幾個可用的值:

  • beginner
  • intermediate
  • advanced
{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "educationalLevel": "beginner"
  }
}
hasPart.name Text

題目的簡要說明。請不要加入問題的完整內容;如要加入完整的問題,請改用 hasPart.text

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "name": "Question about fractions"
  }
}
hasPart.suggestedAnswer.comment Comment

關於答案的提示或解題建議,用以釐清該答案正確或不正確的原因。請在這個屬性中使用 hasPart.suggestedAnswer.comment.text 屬性來提供提示的內容。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "comment": {
        "@type": "Comment"
      }
    }
  }
}
hasPart.suggestedAnswer.comment.text Text

建議答案的提示或解題建議內容。如要變更內容格式 (HTML 或 Markdown),請使用 encodingFormat。瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "comment": {
        "@type": "Comment",
        "text": "<p>This is a hint</p>"
      }
    }
  }
}
hasPart.suggestedAnswer.encodingFormat Text

系統用來對文字屬性進行編碼所使用的 MIME 格式。如未指定 encodingFormat,則採用預設值 text/html。請使用下列其中一個值:

  • text/markdown
  • text/html
{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "encodingFormat": "text/html"
    }
  }
}

瞭解如何在 HTML 或 Markdown 編碼中撰寫練習題

hasPart.suggestedAnswer.position Integer

這個答案向使用者顯示時的位置。

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "suggestedAnswer": {
      "@type": "Answer",
      "position": "0"
    }
  }
}
hasPart.typicalAgeRange Text

設計題目時預設的一般年齡層,例如 7-1218-

{
  "@type": "Quiz",
  "hasPart": {
    "@type": "Question",
    "typicalAgeRange": "7-12"
  }
}
name Text

測驗的標題。

{
  "@type": "Quiz",
  "name": "Negative exponents review"
}
typicalAgeRange Text

設計測驗時預設的一般年齡層,例如 7-1218-

{
  "@type": "Quiz",
  "typicalAgeRange": "7-12"
}

在 HTML 或 Markdown 編碼中撰寫練習題

Google 搜尋支援使用 Markdown (CommonMark 的變種版本) 和 HTML 來對 QuestionAnswerComment 進行編碼。我們將編碼使用的結構元素限制如下:

  • 標頭
  • 換行符號
  • 清單 (排序和未排序)
  • 段落
  • 粗體
  • 斜體
  • 圖片
  • LaTex 格式的公式

系統會忽略 CSS 或 JavaScript。如果題目包含不支援的 HTML 標記,則 Google 不會顯示該題目。

如何指定格式

如要指定您採用的編碼格式,請使用 encodingFormat 屬性,並將值設為 "text/html" (適用於 HTML) 或 "text/markdown" (適用於 Markdown)。

以下是設為 Markdown 格式的題目範例:

{
  "@type": "Question",
  "name": "Average velocity and average speed from graphs",
  "text": "What is the average velocity [..] between the times $$t = 4s$$ and $$t = 10s$$?",
  "encodingFormat": "text/markdown"
  ..
  ..
}

如未指定 encodingFormat,系統會假設您使用的是 "text/html"

公式

如要指定公式,請使用 LaTex 格式。必須使用兩個錢幣符號 ($$) to embed formulas. For example:

"<p>Please solve: $$2x^2 = 18$$</p>"
    )

疑難排解

如果無法順利導入結構化資料,或是偵錯時遇到困難,請參考下列資源。

  • 如果您使用內容管理系統 (CMS) 或者有他人代您處理網站事務,請向對方尋求協助。請務必將所有與問題相關的 Search Console 訊息都轉寄給對方,這些訊息會針對問題提供詳細說明。
  • Google 不保證採用結構化資料的功能一定會顯示在搜尋結果中。如要瞭解為何 Google 無法將您的內容顯示為複合式搜尋結果,請參閱結構化資料通用指南裡的常見原因清單。
  • 結構化資料可能含有錯誤。請查看結構化資料錯誤清單
  • 如果您的網頁遭到結構化資料專人介入處理處置,系統會忽略網頁上的結構化資料,但該網頁仍然會出現在 Google 搜尋結果中。請使用專人介入處理報告來修正結構化資料問題
  • 再次查看指南規範,確認您的內容是否符合規定。問題可能是因為垃圾內容或不當使用的標記所引起。不過,因為問題可能與語法無關,所以複合式搜尋結果測試無法找出問題所在。
  • 疑難排解:未出現複合式搜尋結果/複合式搜尋結果總數減少
  • 請等待一段時間,讓系統執行重新檢索和重新建立索引作業。在發布網頁後,Google 可能需要幾天時間才會找到網頁並進行檢索。如有關於檢索和索引建立作業的一般問題,請參閱 Google 搜尋檢索和索引常見問題
  • 前往 Google 搜尋中心論壇發文提問。