HTML 元标题和描述的推荐语法?

Recommended Syntax for HTML meta title and description?

所以我才刚刚开始为我的网站使用动态元数据。有人告诉我,强烈建议为每页添加不同的元标题和描述。

正确的做法是什么?

是不是应该这样:

Home page title meta -> My Website Name
Home page desc meta  -> Summary of my website.

Different page title meta -> Page name
Different page desc meta  -> Description of current page.

除此之外,是否有推荐的标题命名约定?

例如

Home page title mega      -> My Website Name
Different page title mega -> My Website Name | Page Name

Home page title mega      -> My Website Name
Different page title mega -> Page Name

我假设有一个标准,而不是开发人员认为最好的标准。任何 ideas/suggestions?

首先我建议登录 Google Webmaster Tools。在那里你登录你的网站并获得大量的信息和资源来改善你网站的信息结构。

这里有一篇来自 Google 的关于主题的文章:Meta tags that Google understands

关于 meta name="description" 元素:

<meta name="description" content="A description of the page" />

This tag provides a short description of the page. In some situations this description is used as a part of the snippet shown in the search results.

关于 title 元素:

<title>The Title of the Page</title>

While technically not a meta tag, this tag is often used together with the "description". The contents of this tag are generally shown as the title in search results (and of course in the user's browser).

也考虑实现structured data, see schema.org

我认为现在为整个页面提供基于 Web 标准、干净且语义丰富的 HTML 标记很重要。

title

(注意 title 元素不是 "meta title"。)

HTML5 定义 title element 应该识别文档 "even when they are used out of context"。因此,对于典型的网站,您应该始终在标题中包含网站名称。

出于可用性原因,大多数情况下 good idea 站点名称 之前指定页面名称(例如 page name – site name)。

HTML5 不建议使用分隔符来分隔页面名称和标题。

meta-description

HTML5定义description metadata name用于"describe the page"。该值必须是 "appropriate for use in a directory of pages, e.g. in a search engine".

由于主页通常代表整个网站,因此在主页的 meta-description.

中描述网站(而不是页面)是合适的