码迷,mamicode.com
首页 > 其他好文 > 详细

搜索引擎优化之语义标签 (microdata, microformats, RDFa)

时间:2014-09-29 18:37:31      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:des   style   http   color   io   os   ar   for   sp   

Snippets—the few lines of text that appear under every search result—are designed to give users a sense for what’s on the page and why it’s relevant to their query.bubuko.com,布布扣

If Google understands the content on your pages, it can create rich snippets—detailed information intended to help users with specific queries. For example, the snippet for a restaurant might show the average review and price range; the snippet for a recipe page might show the total preparation time, a photo, and the recipe’s review rating; and the snippet for a music album could list songs along with a link to play each song. These rich snippets help users recognize when your site is relevant to their search, and may result in more clicks to your pages.

Three steps to rich snippets:

1. Pick a markup format.

Google suggests using microdata, but any of the three formats below are acceptable. You don‘t need any prior knowledge of these formats, just a basic knowledge of HTML. Structured Data Markup Helper can show you how to add microdata to your site.

2. Mark up your content.

Google supports rich snippets for these content types:

Google also recognizes markup for video content and uses it to improve search results.

3. Test your markup.

Use the structured data testing tool to make sure that Google can read and extract your marked-up data.

That’s it! Once you‘ve added and tested your rich snippets markup, Google will discover it the next time it crawl your site. A few points to note:

  • It may take some time for rich snippets to appear in search results or Place Pages.

  • If rich snippets aren‘t appearing for your site, see possible reasons why.

  • Marking up your data for rich snippets won‘t affect your page‘s ranking in search results, and Google doesn’t guarantee to use your markup.

Reference:

1、 https://support.google.com/webmasters/answer/99170?hl=en

2、http://www.w3.org/TR/microdata/

搜索引擎优化之语义标签 (microdata, microformats, RDFa)

标签:des   style   http   color   io   os   ar   for   sp   

原文地址:http://my.oschina.net/apdplat/blog/323243

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!