【问题标题】:How to change the description that shows up in Google and add search tags to your page?如何更改显示在 Google 中的描述并将搜索标签添加到您的页面?
【发布时间】:2018-07-24 08:15:25
【问题描述】:

例如 google 的页面显示一个描述:
在他们的情况下,文本是

搜索全球信息,包括网页、图片、视频 和更多。 Google 有许多特殊功能可帮助您准确查找 你在看什么...

我查看了他们页面的来源以了解如何确定此文本,但一无所获。 Google 也有 nice page 解释如何进行描述,但从不指定将描述放在哪里。

有人告诉我描述应该在 robots.txt 中,但是当查看 robots.txt 的 specification 时,它只有四个关键字:
- 用户代理(组的开始)
- 禁止(仅作为组成员记录有效)
- 允许(仅作为组成员记录有效)
- 站点地图(非组记录)

它们都不是描述或搜索标签。

【问题讨论】:

  • 如果你再读一遍那个不错的页面链接,你会在最后找到方法

标签: html search opensearchdescription


【解决方案1】:

sn-p 通常取自描述元标记:

<meta name="description" content="Search the world's information, including webpages, images, video's and more." />

位于页面的&lt;head&gt; &lt;/head&gt; 标记之间。

实际向用户显示的内容完全由 Google 的算法决定 - 它可能会决定该页面上的另一部分文本与用户的搜索更相关。

【讨论】:

    【解决方案2】:

    在我的网站中,我将以下内容放在您主页 (HTML) 的 &lt;head&gt; 标记内。

    <meta name="description" content="Enter your description of your website here!" />
    

    Here is another article by google further explaining this.

    【讨论】:

      猜你喜欢
      • 2010-12-20
      • 1970-01-01
      • 1970-01-01
      • 2010-09-13
      • 2018-07-11
      • 1970-01-01
      • 2020-04-14
      • 2021-04-29
      • 1970-01-01
      相关资源
      最近更新 更多