星翼创想教你怎么添加面包屑导航
时间:2012-09-07
来源:星翼创想(www.iswweb.com)
作者:李飞
大家可能都见过面包屑导航,可以面包屑导航是怎么实现的呢?很多人可能都不知道,其实添加面包屑导航就是添加一些富文本标记,让搜索引擎知道这个东西是面包屑导航。下面就告诉大家怎么添加面包屑导航。
面包屑导航代码示例
Data-Vocabulary.org
Breadcrumb
- Looking for Google’s webmaster docs?
- Looking for RDF?
See our Breadcrumb doc for a full explanation of the Breadcrumb type, and how to encode Breadcrumbs data in RDFa or microdata. This page exists to contain a machine-readable microdata description of the Breadcrumb type itself (at the URI http://data-vocabulary.org/Breadcrumb).
An item with the item type http://data-vocabulary.org/Breadcrumb represents a Breadcrumb within a longer Breadcrumb trail. The following are the type’s defined property names:
Property | Description |
---|---|
title |
The title of a breadcrumb. |
url |
The URL of a breadcrumb. |
child |
The next breadcrumb in the hierarchy. The child must be another Breadcrumb item. |
面包屑导航代码示例
<div id=breadcrumb>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="http://www.iswweb.com" title="首页" itemprop="url"><span itemprop="title">首页</span></a></div>
>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="http://www.iswweb.com/case/" title="案例展示" itemprop="url"><span itemprop="title">案例展示</span></a></div>
>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="http://www.iswweb.com/case/Advertising-Media/" title="广告媒体" itemprop="url"><span itemprop="title">广告媒体</span></a></div>
>
</div>