教育問與答 (Quiz
、Question
和 Answer
) 結構化資料
如果您有學習卡網頁,可以在網頁中加入 Quiz
結構化資料,方便學生找到教育問題的答案。加入結構化資料後,您的內容就能顯示在 Google 搜尋結果的問與答輪轉介面、Google 助理和 Google 智慧鏡頭搜尋結果中。

教育問與答輪轉介面中可出現的網頁類型如下:
- 學習卡網頁:含有學習卡的網頁,通常一面是問題,一面是答案。如要標示學習卡網頁,請繼續閱讀這份指南,瞭解如何新增教育問與答架構。
- 單一問與答網頁:僅包含一個問題的網頁,後面接著使用者提交的答案。如要標示單一問與答網頁,請改為新增
QAPage
標記。
功能適用情況
只有透過電腦和行動裝置搜尋教育相關主題時,才能使用教育問與答輪轉介面。例如,嘗試搜尋 "the measure of three angles of a quadrilateral are 80 90 and 103 degrees" 或 "the ratio of surface energy to surface area is" 等查詢。
教育問與答輪轉介面支援以下語言和地區:
語言 | 可用地區 |
---|---|
英文 | 可使用 Google 搜尋的所有地區 |
葡萄牙文 | 可使用 Google 搜尋的所有地區 |
西班牙文 | 墨西哥 |
越南文 | 可使用 Google 搜尋的所有地區 |
如何新增結構化資料
結構化資料是一種標準化格式,能夠提供網頁相關資訊並分類網頁內容。如果您是第一次使用結構化資料,請參閱這篇文章,進一步瞭解結構化資料的運作方式。
以下簡要說明如何建立、測試及發布結構化資料。
- 新增必要屬性。根據您使用的格式,瞭解要在網頁中的什麼位置插入結構化資料。
- 遵循指南規範。
- 使用複合式搜尋結果測試驗證程式碼,並修正所有重大錯誤。此外,我們也建議您修正工具中可能標記的任何非重大問題,因為這有助於改善結構化資料的品質 (但並非符合複合式搜尋結果的顯示條件)。
- 部署幾個包含結構化資料的網頁,並使用網址檢查工具測試 Google 轉譯網頁的情形。請確認 Google 可以存取您的網頁,且網頁並未遭到 robots.txt 檔案或
noindex
標記封鎖,也未設有登入規定。如果網頁看起來沒問題,您可以要求 Google 重新檢索您的網址。 - 為了讓 Google 掌握日後的異動內容,建議您提交 Sitemap。您可以使用 Search Console Sitemap API 自動執行這項操作。
範例
以下是含有教育問與答結構化資料的學習卡網頁範例。
<html> <head> <title>Cell Transport</title> <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "Quiz", "about": { "@type": "Thing", "name": "Cell Transport" }, "educationalAlignment": [ { "@type": "AlignmentObject", "alignmentType": "educationalSubject", "targetName": "Biology" } ], "hasPart": [ { "@context": "https://schema.org/", "@type": "Question", "eduQuestionType": "Flashcard", "text": "This is some fact about receptor molecules.", "acceptedAnswer": { "@type": "Answer", "text": "receptor molecules" } }, { "@context": "https://schema.org/", "@type": "Question", "eduQuestionType": "Flashcard", "text": "This is some fact about the cell membrane.", "acceptedAnswer": { "@type": "Answer", "text": "cell membrane" } } ] } </script> </head> </html>
指南規範
您必須遵守以下指南規範,才能讓網頁使用教育問與答複合式搜尋結果:
技術指南
- 盡可能將結構化資料放在資訊最為詳細的分葉頁面。請勿在沒有問題的網頁中加入結構化資料。
- 所有問題都必須使用
eduQuestionType
屬性的Flashcard
值。 含有其他題型的網頁不會出現在教育問與答輪轉介面中。如果是含有其他題型的網頁,請考慮使用練習題。 - 確認 Googlebot 能夠有效檢索網站。
- 使用者在網頁上應能立即看到您網站中的問題,也就是說,不是只有資料檔案或 PDF 中才含有這些問題。
- 如果您的網頁只有一個問題,後面接著幾個使用者提交的答案,請改用
QAPage
標記。
內容指南
我們制定這些教育問與答內容指南的目的,在於確保使用者能找到確實相關的學習資源。如果我們發現有內容違反這些規範,將會以適當的方式處理違規行為,包括採取人工判決處罰,而且不會在 Google 的教育問與答複合式搜尋結果中顯示您的內容。
- 教育問與答網頁必須遵守問與答頁面適用的相同內容指南。
- 網頁必須包含教育相關的問題與答案。網頁中至少要有一個問題與答案配對,且答案除了必須與使用者的問題相關外,還要能解答使用者的問題。
- 透過這項功能呈現教育問與答頁面的內容時,您有責任確保內容正確無誤且品質優良。如果我們根據品質和過往的審查程序,發現您資料中的錯誤達到一定數量,則在解決問題之前,所有或部分問與答頁面可能無法使用這項功能。
結構化資料類型定義
您的內容必須包含必要屬性,才能以複合式搜尋結果的形式呈現。您也可以加入建議的屬性,為內容增添更多相關資訊,提供更優質的使用者體驗。
Quiz
Quiz
是一組學習卡 (一或多張),通常關於同一概念或主題。
schema.org 內提供 Quiz 的完整定義。 Google 支援的屬性如下:
必要屬性 | |
---|---|
hasPart |
與測驗中特定學習卡問題相關的巢狀資訊。使用一個 如要加入多張學習卡,請重複這個屬性。 { "@type": "Quiz", "hasPart": { "@type": "Question" } } |
建議屬性 | |
---|---|
about |
關於 { "@type": "Quiz", "about": { "@type": "Thing" } } |
about.name |
關於 { "@type": "Quiz", "about": { "@type": "Thing", "name": "Cell transport" } } |
educationalAlignment |
測驗應符合的現有教育架構。您可以重複這個屬性,指定測驗應符合的研究領域,以及目標年級或教育標準。 { "@type": "Quiz", "educationalAlignment": [] } |
educationalAlignment.alignmentType |
統整學習資源與測驗架構節點的標準類別,Google 搜尋採用的是 LRMI 標準。 請重複
以下說明如何同時指定 { "@type": "Quiz", "educationalAlignment": [ { "@type": "AlignmentObject", "alignmentType": "educationalSubject", "targetName": "Biology" }, { "@type": "AlignmentObject", "alignmentType": "educationalLevel", "targetName": "Fifth grade" } ] } |
educationalAlignment.targetName |
現有教育架構的節點名稱,例如:「Grade 7: Cell Structure」。 { "@type": "Quiz", "educationalAlignment": [ { "@type": "AlignmentObject", "targetName": "Grade 7: Cell Structure" } ] } |
Question
每個問題都會對應至一張學習卡,卡片以巢狀方式收納於 Quiz
的 hasPart
屬性底下。請注意,這些 Question
規定與 QAPage
的問題規定不同。
schema.org 內提供 Question 的完整定義。Google 支援的屬性如下:
必要屬性 | |
---|---|
acceptedAnswer |
學習卡的答案完整內容。每個 { "@type": "Question", "acceptedAnswer": { "@type": "Answer", "text": "cell membranes" } } |
eduQuestionType |
問題的類型。您必須使用這個固定值: { "@type": "Question", "eduQuestionType": "Flashcard” } |
text |
學習卡問題全文。 { "@type": "Question", "text": "A protein on the surface of HIV can attach to proteins on the surface of healthy human cells. What are the attachment sites on the surface of the cells known as?" } |
Monitor rich results with Search Console
Search Console is a tool that helps you monitor how your pages perform in Google Search. You don't have to sign up for Search Console to be included in Google Search results, but it can help you understand and improve how Google sees your site. We recommend checking Search Console in the following cases:
- After deploying structured data for the first time
- After releasing new templates or updating your code
- Analyzing traffic periodically
After deploying structured data for the first time
After Google has indexed your pages, look for issues using the relevant Rich result status report. Ideally, there will be an increase of valid items, and no increase in invalid items. If you find issues in your structured data:
- Fix the invalid items.
- Inspect a live URL to check if the issue persists.
- Request validation using the status report.
After releasing new templates or updating your code
When you make significant changes to your website, monitor for increases in structured data invalid items.- If you see an increase in invalid items, perhaps you rolled out a new template that doesn't work, or your site interacts with the existing template in a new and bad way.
- If you see a decrease in valid items (not matched by an increase in invalid items), perhaps you are no longer embedding structured data in your pages. Use the URL Inspection tool to learn what is causing the issue.
Analyzing traffic periodically
Analyze your Google Search traffic using the Performance Report. The data will show you how often your page appears as a rich result in Search, how often users click on it and what is the average position you appear on search results. You can also automatically pull these results with the Search Console API.疑難排解
如果無法順利導入結構化資料,或是偵錯時遇到困難,請參考下列資源。
- 如果您使用內容管理系統 (CMS) 或者有他人代您處理網站事務,請向對方尋求協助。請務必將所有與問題相關的 Search Console 訊息都轉寄給對方,這些訊息會針對問題提供詳細說明。
- Google 不保證採用結構化資料的功能一定會顯示在搜尋結果中。如要瞭解為何 Google 無法將您的內容顯示為複合式搜尋結果,請參閱結構化資料通用指南裡的常見原因清單。
- 結構化資料可能含有錯誤。請查看結構化資料錯誤清單和無法剖析的結構化資料報告。
- 如果您的網頁遭到結構化資料人工判決處罰,系統會忽略網頁上的結構化資料,但該網頁仍然會出現在 Google 搜尋結果中。請使用人工判決處罰報告來修正結構化資料問題。
- 再次查看指南規範,確認您的內容是否符合規定。問題可能是因為垃圾內容或不當使用的標記所引起。不過,因為問題可能與語法無關,所以複合式搜尋結果測試無法找出問題所在。
- 參閱「疑難排解:未出現複合式搜尋結果/複合式搜尋結果總數減少」。
- 請等待一段時間,讓系統執行重新檢索和重新建立索引作業。在發布網頁後,Google 可能需要幾天時間才會找到網頁並進行檢索。如有關於檢索和索引建立作業的一般問題,請參閱 Google 搜尋檢索和索引常見問題。
- 前往 Google 搜尋中心論壇發文提問。