且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

H1标签,SEO和语义

更新时间:2022-10-30 22:35:46

$ c> h1 作为页面标题,而不是公司名称。只需将公司名称放在 div 中,并将其设置为标题。



对于SEO目的,公司名称与该页面不具有部分相关性。为页面添加各种标题更加重要,这样搜索引擎就不会认为你的所有页面只是同一页面的不同版本。



使用公司名称作为标题意味着您减少了页面标题的相关性,使得搜索引擎索引关键字页面的可能性降低。



例外当然是主要该网站的页面,使公司名称成为最相关的信息是有意义的。


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/***/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.

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.