元类型=“标题”吗? 需要标签以及标题标签的最佳格式是什么?

发布于 2024-07-08 03:37:51 字数 378 浏览 6 评论 0原文

我看到一些网站使用以下标签:

<meta type="title" content="Title of the page" />

当您有 </code> 时是否需要?

另外,页面标题的最佳格式是什么? 一些想法:

  • 页面描述 :: 公司名称
  • 页面描述 - 公司名称
  • 页面描述>> 公司名称
  • 公司名称: 页面描述
  • ...

对 Google/Yahoo/etc 重要吗? 您是否在每个页面的标题中包含公司名称或网站的一般描述?

I have seen some websites use the following tag:

<meta type="title" content="Title of the page" />

Is it needed when you have a <title>?

Also, what's the best formatting for a page title? Some ideas:

  • Page Description :: Company Name
  • Page Description - Company Name
  • Page Description <> Company Name
  • Company Name: Page Description
  • ...

Does it matter to Google/Yahoo/etc? Do you include the company name or a general description of the site in the title on every page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

御守 2024-07-15 03:37:52

是您想要使用的,因为对于大多数搜索引擎来说,它比元标记更突出。

我的建议是首先放置重要的关键字,并避免在主页以外的地方重复您的公司名称,因为这只会削弱标题文本的价值。

is what you want to use, because it stands out more than meta tags to most search engines.

My suggestion is to put the keywords that matter first, and avoid repeating the name of your business other than on the homepage, because this only serves to dilute the value of the title text.

掀纱窥君容 2024-07-15 03:37:51

标记与搜索引擎爬虫的排名或相关性很小。 好的旧 </code> 标签远远超过 <a href="http://www.w3.org/QA/Tips/good-titles" rel="nofollow noreferrer">一个好的网页最重要的元素</a>。

至于标题的格式,我认为这篇文章中有很好的建议在标准 Schmandards

如果标题包含
站点,站点名称应该是
置于标题末尾。 这
确保多个书签
来自同一网站的内容很容易浏览
通过书签文件夹并
您页面的听众获得最多的收益
重要信息优先。

我强烈建议您在每个标题的末尾添加公司名称或网站名称,因为:

  1. 一致性始终是一个好主意。
  2. Firefox 3 等较新的浏览器允许您按页面标题搜索历史记录和书签,因此用户只需输入您的公司名称或网站名称即可轻松查看他们在您网站上访问过的所有页面。
  3. 如果页面上某处未列出,使用屏幕阅读器的用户将不知道他们正在访问哪个网站。

但是,我不会在主页以外的任何地方放置网站的描述,因为这会使标题不必要地过长,并且会让屏幕阅读器用户感到沮丧,因为他们必须付出额外的努力才能在访问的每个页面上跳过该信息。

如果您决定将公司名称放在标题中,请记住这些事项(也来自 标准 Schmandards):

  • 分隔符应该是
    明确以便用户理解
    它是一个分隔符。 (即它
    不应作为文本的一部分出现
    标题中的项目)。
  • 用作分隔符的主要候选者是竖线 (|),
    点 (·) 和破折号 (-)。
  • 无论您选择什么角色,包围它都很重要
    带有空格
    。 这将有助于双方
    有视力的访客和听众
    会将字符与
    标题文本。

根据此处的所有信息,这基本上使您问题中的第二个示例成为显而易见的选择:

<title>
    Page Description - Company Name
</title>

The <meta type="title"> tag has little rank or relevance to search engine crawlers. The good old <title> tag is far and away the most important element of a good web page.

As for the format of the title, I think there is good advice in this article at Standards Schmandards:

If the title contains the name of the
site, the name of the site should be
placed at the end of the title. This
makes sure that multiple bookmarks
from the same site are easy to browse
through in the bookmarks folder and
listeners to your page get the most
important information first.

I would highly suggest that you do include the company name or site name at the end of each title because:

  1. Consistency is always a good idea.
  2. Newer browsers like Firefox 3 allow you to search your history and bookmarks by page titles, so users can easily get a view of all the pages they've visited on your site by simply typing in your company name or site name.
  3. People that use screen readers will have no idea what website they are visiting if it isn't listed somewhere on the page.

However, I would not put a description of the site anywhere but on the home page because that would make the title unnecessarily long and would frustrate screen reader users because they would have to make an extra effort to skip that information on every page they visit.

If you do decide to put the company name in your title, keep these things in mind (also from Standards Schmandards):

  • The separator character should be
    distinct so that users understand
    that it is a separator. (I.e. it
    should not appear as part of text
    items in the title).
  • Prime candidates to use as separators are the vertical bar (|),
    the dot (·) and the dash (-).
  • Regardless of the character you pick, it is important to surround it
    with whitespace
    . This will aid both
    sighted visitors and listeners as it
    will distinguish the character from
    the title text.

Based on all the information herein, that essentially makes the second example in your question the obvious choice:

<title>
    Page Description - Company Name
</title>
萤火眠眠 2024-07-15 03:37:51

搜索引擎经常忽略元标记,因为过去它们用于垃圾邮件目的。 标题的最佳标签正是 </code>。

作为标题的最佳格式,没有最好的秘诀,而是尝试使标题尽可能描述页面的真实内容。

Search engines often ignore meta tags as in the past they where used for spamming purposes. The best tag for title is precisely <title>.

As the best formatting for the title there is no best recipe, but instead try to make the title as descriptive as possible of the real contents of the page.

情泪▽动烟 2024-07-15 03:37:51

Meta Robots:该标签享有全力支持,但您只需要
如果您不希望您的页面被索引,请使用它。

元描述:该标签得到了很多支持,非常值得使用。

元关键词:仅部分主流爬虫支持该标签
并且可能不值得花时间来实施。

Meta Else:您看到的任何其他元标记都会被主要爬虫忽略,
尽管它们可能被专门的搜索引擎使用。

Meta Robots: This tag enjoys full support, but you only need
it if you DO NOT want your pages indexed.

Meta Description: This tag enjoys much support, and it is well worth using.

Meta Keywords: This tag is only supported by some major crawlers
and probably isn't worth the time to implement.

Meta Else: Any other meta tag you see is ignored by the major crawlers,
though they may be used by specialized search engines.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文