use*_*659 5 html markup breadcrumbs rich-snippets
您是否应该标记面包屑的主页和当前页面?我使用数据词汇只是因为 schema.org 不允许标记标题或 url - 只有一行文本,没有分隔符,除非手动添加。
这是我现在拥有的一个例子。请注意,我标记了主页和当前页面 - 这是正确的还是应该不标记其中一个或两个页面?
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a class="home" itemprop="url" href="/"><span itemprop="title"><img alt="Home" height="30" src="/images/trans.gif" width="16"></span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/services/"><span itemprop="title">Services</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/"><span itemprop="title">Widget</a></span></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/features.htm"><span itemprop="title">Features</span></a></li>
Run Code Online (Sandbox Code Playgroud)
我已经测试了以下似乎有效的方法,我认为您只是将几个结束</span></a>标签弄错了。
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a class="home" itemprop="url" href="/"><span itemprop="title"><img alt="Home" height="30" src="/images/trans.gif" width="16"></span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/services/"><span itemprop="title">Services</span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/"><span itemprop="title">Widget</span></a></li>
<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="/service/widget/features.htm"><span itemprop="title">Features</span></a></li>
Run Code Online (Sandbox Code Playgroud)
您可能已经阅读过它,但您可以在此处阅读有关面包屑的更多信息:http://support.google.com/webmasters/bin/answer.py ?hl=en&answer=185417“Microdata”链接有一个很好的示例。
| 归档时间: |
|
| 查看次数: |
1350 次 |
| 最近记录: |