对于使用Rich Snippets优化HTML的这些方法,我还是很陌生。我不确定以下每个列表项有什么区别:
我在下面的示例下获得了此代码,我想知道哪些缺失项或代码可以优化搜索引擎可以理解的简单博客文章。我想知道所有可用于博客文章的丰富代码段。
<div id="blog_post" itemscope="" itemtype="http://schema.org/BlogPosting">
<h2 itemprop="name headline">Post Title</h2>
<div class="byline">
Written by
<span itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">
<a href="https://" itemprop="url" rel="author">Author</a>
</span>
</span>
on
<time datetime="2011-05-17T22:00" itemprop="datePublished">Tuesday May 17th 2013</time>
</div>
<div class="content" itemprop="articleBody">Content...</div>
</div>
最佳答案
http://schema.org/Blog
可以在首页上使用,通常可以在其中找到几篇博客文章的列表(也许还可以在每一页上查看整个博客范围内的内容,例如博客名称)。http://schema.org/BlogPosting
代表单个博客文章。http://schema.org/Article
比http://schema.org/BlogPosting
只是more general(每个BlogPosting
都是Article
,但并非每个Article
都是BlogPosting
)。如果您有一个典型的博客,则想使用http://schema.org/BlogPosting
。
关于metadata - 通过架构优化的博客文章,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18606021/