H1 标签、SEO 和语义

发布于 2024-09-04 14:32:31 字数 374 浏览 2 评论 0原文

我在文档中使用 H1 标签作为主标题,就像您一样。 H1中的文字是公司的标题,需要在每个页面上显示。我使用 H2 标签作为每个页面上主要内容的标题。所以每个页面的H1都是一样的,而H2是变化的。

示例 http://dev.darrenhall.info/temp/stackoverflow/h1/h1.gif

我知道很多网站都使用 H1 来做我用 H2 做的事情,我会因为不这样做而失败吗?我知道从语义上讲我不能将 H1 变成 H2,反之亦然,所以我想知道最好的选择是什么。我的 H1 始终相同有什么关系吗?任何建议表示赞赏!谢谢!

达伦.

I'm using the H1 tag in my document as the main title, as you do. The text in the H1 is the title of the company, which needs to be shown on every page. I'm using the H2 tag for the title of the main content on each page. So the H1 is the same on every page, and the H2 changes.

Example http://dev.darrenhall.info/temp/stackoverflow/h1/h1.gif

I know that a lot of sites use the H1 to do what I'm doing with the H2, am I losing out by not doing this? I know that semantically I can't make the H1 into a H2 and vice versa, so I'm wondering what the best option is. Does it matter that my H1 is always the same? Any advice is appreciated! Thanks!

Darren.

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

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

发布评论

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

评论(2

凉风有信 2024-09-11 14:32:31

您应该使用 h1 作为页面标题,而不是公司名称。只需将公司名称放入 div 中,并将其设置为看起来像标题即可。

出于搜索引擎优化的目的,公司名称与页面并不完全相关。更重要的是为页面提供不同的标题,这样搜索引擎就不会认为您的所有页面只是同一页面的不同版本。

使用公司名称作为标题意味着您降低了页面标题的相关性,从而降低了搜索引擎根据关键字对页面进行索引的可能性。

当然,网站的主页是个例外,在该页面中,将公司名称作为最相关的信息是有意义的。

You should use h1 for the page title, not the company name. Just put the company name in a div and style it to look like a headline.

For SEO purposes the company name is not partically relevant for the page. It's more important to get varied headlines for the pages, so that search engines doesn't think that all your pages are simply different versions of the same page.

Using the company name as headline means that you reduce the relevance of the page title, making it less likely that search engines index the pages on the keywords.

The exception is of course the main page of the site, where it makes sense to have the company name being the most relevant information.

治碍 2024-09-11 14:32:31

这主要是个人选择,因为只要你使用H1或H2作为页面标题就不会影响SEO。我即将完全重写我的网站,我将使用 H1 作为文章标题(而不是网站标题),因为我觉得它在语义上更正确。

It's mostly personal choice as the use of H1 or H2 for the page title won't affect SEO as long as you use one. I am about to rewrite my website completely and I'm going to use H1 for the article title (not the site title) as I feel it's more semantically correct.

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