<meta name="description">
元素會針對搜尋引擎納入搜尋結果的網頁內容提供摘要。優質而獨特的中繼說明,可讓網頁出現關聯性更高的搜尋結果,進而增加搜尋流量。
Lighthouse 中繼說明稽核失敗
Lighthouse 標記頁面:不含中繼說明:
如有下列情況,稽核作業就會失敗:
- 您的網頁沒有
<meta name=description>
元素。 <meta name=description>
元素的content
屬性為空白。
Lighthouse 不會評估說明的品質。
如何新增中繼說明
在每個網頁的 <head>
中加入 <meta name=description>
元素:
<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 的在搜尋結果中建立良好的標題和摘要頁面。