gpt4 book ai didi

microformats - RDFa/微格式 - 配方标记标准

转载 作者:行者123 更新时间:2023-12-01 01:34:43 27 4
gpt4 key购买 nike

我想知道是否有人可以帮忙?

After Google announced它将注意到在线食谱的 RDFa/微格式,我一直在研究我运行的几个基于食谱的网站。然而,我们根本没有满足任何标准所需的所有数据。

这有关系吗?搜索引擎爬虫是否仍会充分利用他们找到的内容,或者缺少一些元素(如评论或食谱评级),我会浪费时间实现它吗?

另外,如果出于格式原因,我必须在信息周围添加额外的 div,这是否会使所有信息无效?

干杯,
H

最佳答案

看看hRecipe规范草案。

hRecipe 架构包含以下属性:

* hrecipe
o fn. required. text. the name of the recipe.
o ingredient. required. 1 or more. text with optional valid (x)HTML markup.
+ value and type. optional. [experimental]
o yield. optional. text.
o instructions. optional. text with optional valid (x)HTML markup.
o duration. optional. 1 or more. text.
o photo. optional. 1 or more. using any element containing a URL, such as IMG. [experimental]
o summary. optional. text. [experimental]
o author. optional. 1 or more. [experimental]
o published. optional. [experimental]
o nutrition. optional. 1 or more. [experimental]
+ value and type. optional. [experimental]
o tag. optional. 1 or more. [experimental]

如果您查看必填字段 fningredient是强制性的,其他字段是可选的。
以下示例是有效的 hRecipe 配方:
  <div class="mydivclass1">
<h1 class="fn">Spaghetti al ragù</h1>
<div class="myfancydiv2>Ingredients:</div>
<span class="ingredient">
spaghetti
</span>
<span class="ingredient">
ragù
</span>
</div>

要检查您的微格式,您可以使用很酷的 Optimus validator .

关于microformats - RDFa/微格式 - 配方标记标准,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2699843/

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