gpt4 book ai didi

html - 关于 'Question' 类型 : "Missing a QAPage markup item on page to which this item should be associated." 的警告

转载 作者:搜寻专家 更新时间:2023-10-31 08:23:32 24 4
gpt4 key购买 nike

以下Answer schema 在 Google 的 SDTT 中给出警告:

Missing a QAPage markup item on page to which this item should be associated.

微数据:

<div itemscope itemtype="http://schema.org/Question">
<h1 itemprop="name">What is attr_accessor in Ruby?</h1>
<div itemprop="upvoteCount">196</div>
<div itemprop="text">I am having difficulty understanding Ruby attr_accessors, can someone explain them?</div>
<div>asked <time itemprop="dateCreated" datetime="2010-11-04T20:07Z">Nov 11 '10 at 20:07</time></div>
<div itemprop="author" itemscope itemtype="http://schema.org/Person">
<span itemprop="name">someuser</span>
</div>
<div><span itemprop="answerCount">4</span> answers</div>
<div itemprop="suggestedAnswer acceptedAnswer" itemscope itemtype="http://schema.org/Answer">
<div itemprop="upvoteCount">1337</div>
<div itemprop="text">
(The text of the accepted answer goes here...).
</div>
<div>answered <time itemprop="dateCreated" datetime="2010-12-01T22:01Z">Dec 1 '10 at 22:01</time></div>
<div itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">anotheruser</span></div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="http://schema.org/Answer">
<div itemprop="upvoteCount">39</div>
<div itemprop="text">
(Another explanation would go here).
</div>
<div>answered <time itemprop="dateCreated" datetime="2010-12-06T21:11Z">Dec 6 '10 at 21:11</time></div>
<div itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">lonelyuser1234</span></div>
</div>
</div>

此时此标记不适用于 Google 吗?

最佳答案

正如警告所说,Google 建议提供 QAPage项,可能符合 Google 的一项搜索结果功能。

您可以通过 mainEntity 将您的Question 关联到QAPage属性:

<div itemscope itemtype="http://schema.org/QAPage">
<div itemprop="mainEntity" itemscope itemtype="http://schema.org/Question">
<!-- … -->
</div>
</div>

关于html - 关于 'Question' 类型 : "Missing a QAPage markup item on page to which this item should be associated." 的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52253705/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com