1.确定您希望Google专注于哪些细节。
您的网页的主题和格式将决定您希望Google在其搜索结果中显示哪些类型的信息。您在写文章吗?活动页面?一本书评论?产品页面?以下是丰富的摘要中包含的一些详细信息的示例,可用于您可用的几种类型的片段:
- 文章:You can add tags for the article title, author, meta description, publish date, featured image, and more.
- 餐厅页面:You can add tags for food items, item prices, item descriptions, item images, item calories, and more.
- 产品页面:您可以为产品名称,产品评级,产品价格,产品可用性,产品图像等添加标签。
- 活动页面:您可以为事件名称,活动扬声器,活动时间表,事件日期等添加标签。
- Recipe:您可以添加用于配方评级,成分,最终产品图像,烹饪持续时间,总卡路里等标签。
2. Define your webpage using Google's Structured Data Markup Helper.
那么,如何创建上面列出的标签?不幸的是,它并不像在网页的HTML中写“这是产品的价格”那样容易,并希望Google能够提示。为了将这些信息正确传达给Google,该公司提供了一个方便的工具,用于根据您发布的网页类型创建结构化数据集。raybet电子竞技它称为结构化数据标记助手。用它here,在下面查看。
正如你所看到的,上面,你会首先选择the attribute that best describes the content you're creating. Then, at the bottom of this page, enter the existing URL of the webpage to which your content has been published. (Note: To use this tool, you'll publish your content first, and then retrieve the URL so you can structure your data accordingly.)
3.使用所选数据类型为您的网页创建微数据。
MicroDATA是标记内容来描述此内容代表的内容的一种方式。例如,事件具有与之相关的各种信息,包括场地,起始时间,名称和类别。然后,您可以使用一些代码基本上告诉Google:“这是我的活动,以及人们需要了解的最重要的信息。”
如何使用微数据
MicroDATA将您的文本包裹在非常简单的HTML标签中,例如或 My name is Diana Urban, and I was born and raised in New York. I'm on the marketing team at HubSpot, an all-in-one marketing software company in Cambridge, MA. 在上面的副本的开头和结尾查看这些 标签?这表示标准中的文本段落风格。与本文中的任何其他段落相比,上面的文本没有什么独特的。这使得Google很难以您可能希望将其解释的方式来解释它。 Now, here is the same HTML tagged with microdata: 这些大胆的在上面的HTML标签告诉谷歌each piece of my author bio actually is. The "person" tag indicates this is about a person. The "name" tag indicates the following text is my name. The "title" tag indicates the following text is my job title. The "div" tags single out the entire section of HTML so Google knows it can highlight it in my article's snippet, given the appropriate search term a user might enter. 在上一步中选择了数据类型后,您将被带到一个页面,您可以在其中将网页的某些详细信息与描述这些详细信息的Microdata相关联。例如,为了为文章的作者创建Microdata,您将在网页上突出显示作者的名称 - Google在该工具的左侧项目上项目 - 并在出现的下拉下选择“作者”。在下面查看它的外观。 Next, you'll create new strings of HTML from the microdata you created in the previous step. Once you've finished assigning each part of your webpage a proper tag, click the red "Create HTML" button on the top-righthand corner of the tool, as shown below. 成功创建了HTML后,您将看到您在上面的步骤3中创建的每个标签,并在代码块中列出,然后可以将其插入文章的HTML中。您将在内容管理系统(CMS)中插入此代码。 Google建议将其为您创建的HTML添加到文章HTML的“头部”中。如果您使用CMS集线器,您会发现仅为此场合设计的单独的HTML框,如下所示。 Learn more about adding HTML to webpages inHubSpot Academy。 想要另一种用各种微型数据标记HTML的方法吗?查看此说明列表下方的富篇幅的不同示例。这些丰富的摘要中的每一个都链接到有关如何优化每种类型的丰富片段的分开的Google指令。(当您加载他们的页面时,请始终选择“ Microdata”方法以获取正确的说明。) Google Webmaster Tools has another nifty feature that lets you test your rich snippet.Click here to use their Structured Data Testing Tool.这将确认Google是否可以阅读您的标记数据以及您富裕的片段是否出现在其搜索结果中。 如果您没有立即在Google的搜索结果中看到丰富的片段,请不要害怕。实际上,Google需要几周的时间才能爬网和索引这些新数据。所以去海滩。喝玛格丽塔酒。在阳光下浸泡。 Okay, it's more likely that you'll just keep working on other stuff in the meantime, but a girl can dream ... Let's run through some of the different types of rich snippets that are available to use on your website. Each section links to Google's instructions on how to actually install the rich snippets -- remember to select the microdata option for the easiest installation process! 关于企业或组织的丰富片段可以包括位置信息,联系信息,价格范围,时间和客户评论,如果有任何可用的话。 活动片段包括活动的日期,位置和时间。如果事件有多个选项,则最多将显示三个选项。 Learn how to create rich snippets for events > 使用音乐专辑Rich片段将在专辑中显示指向单个歌曲的链接,甚至可以在歌曲中显示歌词。 Learn how to create rich snippets for music > The people snippet displays information such as a person's job title, the company they work for (a.k.a. affiliation), and location. It can also display a photo, nickname, and more. 人们片段与作者摘要不同。这是区别,真正的例子。 Product rich snippets include things like a picture of a product, ratings, and price range of the product. Learn how to create rich snippets for products > 丰富的食谱片段为用户提供有关特定烹饪食谱的其他信息,例如评分(1至5星),厨师/准备时间和卡路里信息。 为了作为食谱资格,您必须至少有以下两个标签: 您已经看到了许多具有5星级评级的片段的示例。但是您还可以设置仅仅是评论部分的摘要。 如果您想在搜索列表旁边显示视频的缩略图,则标记的工作方式有所不同。Google认识到Facebook共享标记代码,因此您不妨用一块石头杀死两只鸟。
最初发布于2019年2月20日10:13:00,更新于2020年4月10日 主题:
My name is 我是标题“>前景营销主管 at 联系“>HubSpot, an all-in-one marketing software company in Cambridge, MA.创建您的微数据
4.从此微数据创建新的HTML。
5.使用此微型数据标记您的内容。
6. Test your rich snippet.
7. Be patient.
Rich Snippets Examples
业务和组织片段
事件片段
音乐专辑片段
People Snippets
Product Snippets
食谱片段
查看摘要
Video Snippets