我已经在互联网和stackoverflow上搜索了很长时间来回答这个问题,我发现链接表明你不应该把meta标签放在正文中:
schema.org网站清楚地显示了元标记直接嵌套在主体http://schema.org/AggregateRating中
只需看看那里发布的示例
Customer reviews:
<div itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<span itemprop="name">Not a happy camper</span> -
by <span itemprop="author">Ellie</span>,
<meta itemprop="datePublished" content="2011-04-01">April 1, 2011
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content = "1">
<span itemprop="ratingValue">1</span>/
<span itemprop="bestRating">5</span>stars
</div>
<span itemprop="description">The lamp burned out and now I have to replace
it. </span>
</div>
<div itemprop="reviews" itemscope itemtype="http://schema.org/Review">
<span itemprop="name">Value purchase</span> -
by <span itemprop="author">Lucas</span>,
<meta itemprop="datePublished" content="2011-03-25">March 25, 2011
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
<meta itemprop="worstRating" content …
Run Code Online (Sandbox Code Playgroud) keywords
来自Schema.org 的属性,因为它以复数形式表示,似乎暗示它的值应该是一行逗号分隔的文本.如下例所示:
<p itemprop="keywords">lorem, ipsum, dolor, sit, amet</p>
Run Code Online (Sandbox Code Playgroud)
这让我想起了<meta name="keywords" content="lorem, ipsum, dolor, sit, amet">
我们过去<head></head>
因为SEO原因而放置的标签.
但是,从语义学的角度来看,我认为上面的例子是不正确的,因为关键字应该是一个单词列表.因此,应该使用该<ul>
元素进行标记.
关于如何使用HTML5和Microdata标记博客文章的关键字,是否存在共识?