微数据可以很好地平衡丰富性与简单性。如您所见,使用 itemscope 等 HTML 属性(用于定义新项)、itemtype(用于指定所描述项的类型)和 itemprop(用于指定该项的属性)向网页添加标记非常简单。向网页添加标记后,您可以使用丰富网页摘要测试工具测试该网页,以确保 Google 能够解析您网页上的数据。
与微格式和 RDFa 一样,我们支持的词汇(包括 Google 可以识别的项类型和项属性)在我们的丰富网页摘要文档和 data-vocabulary.org 中指定。标记您的内容并不能保证为您的网站显示丰富网页摘要;Google 将逐渐扩大微数据标记的使用范围,以确保提供卓越的用户体验。
[null,null,[],[[["This blog post is outdated; refer to the current documentation on structured data for the latest information."],["Google now supports microdata for rich snippets, alongside existing support for microformats and RDFa."],["Microdata allows you to specify structured information like reviews, profiles, and events within web pages, which Google may use to enhance search result presentation."],["Microdata uses attributes like `itemscope`, `itemtype`, and `itemprop` to easily add markup to web pages for specifying structured data."],["While rich snippets are not guaranteed, using microdata enables Google to better understand and potentially enhance the display of your content in search results."]]],["Microdata, a new markup standard within HTML5, enables the specification of structured information on web pages. This allows users to add markup to their web pages using attributes such as `itemscope`, `itemtype`, and `itemprop`, to define and describe items like reviews, people profiles, or events. Google supports microdata for rich snippets and offers a testing tool to validate the markup. This information helps Google enhance the presentation of pages in search results.\n"]]