文档没有元描述

<meta name="description"> 元素提供网页内容的摘要,以便搜索引擎在搜索结果中显示这些内容。优质且独特的元描述可让您的网页更具相关性,并可以增加您的搜索流量。

Lighthouse 元描述审核如何失败

Lighthouse 会标记没有元描述的页面:

显示文档没有元描述的 Lighthouse 审核报告

如果出现以下情况,审核将失败:

  • 您的网页没有 <meta name=description> 元素。
  • <meta name=description> 元素的 content 属性为空。

Lighthouse 不会评估您的说明的质量。

如何添加元描述

<meta name=description> 元素添加到每个页面的 <head> 中:

<meta name="description" content="Put your description here.">

如果可以,请在说明中添加明确标示的事实。例如:

<meta name="description" content="Author: A.N. Author,
    Illustrator: P. Picture, Category: Books, Price: $17.99,
    Length: 784 pages">

元描述最佳实践

  • 为每个网页使用独特的说明。
  • 说明应简洁明了。避免使用“家”等模糊描述。
  • 避免关键字堆砌。 这对用户没有任何帮助,而且搜索引擎可能会将相应网页标记为垃圾内容。
  • 说明不一定要是完整的句子,可以包含结构化数据。

以下是有效说明和错误说明的示例:

错误做法
<meta name="description" content="A donut recipe.">

太模糊。

正确做法
<meta
  name="description"
  content="Mary's simple recipe for maple bacon donuts
           makes a sticky, sweet treat with just a hint
           of salt that you'll keep coming back for.">

描述准确但简洁。

如需更多提示,请参阅 Google 的在搜索结果中创建良好的标题和摘要页面。

资源