This article mainly introduces the use of HTML h1~h6, and introduces two methods of using HTML h1 tags in web pages. One is a detailed introduction to the homepage of the website, and the other is a detailed introduction to the article content page. Introduction, summary of the last point, now let’s take a look at this article
First of all, let’s take a look at what is the html h1 tag:
HTML h1 What is the label? It's a first-level title.
In a web page, the content included in h1 is the most important content besides the title, and it plays an important role in outlining the web page. The first thing search engines want to crawl is the content in the h1 tag. Therefore, it is stipulated that the h1 tag can only appear once in a page, otherwise the h1 tag will lose its meaning, and for search engines, this is a typical SEO excessive and will be punished sooner or later. For Google, web pages that excessively use h1 will not be included at all. If you find that your website homepage has not been paid attention to by Google, then you should be careful. Baidu may temporarily include you, but sooner or later you may be demoted or your site will be demoted. The following is an introduction to the use of h1 to h6.
h1 : Website title
h2 : Website subtitle
h3 : Website category directory
h4: Article classification of the website
h5: Article annotation
Now let’s take a look at the specific usage
Because there will be many article lists on the homepage, if you put < The ;h1> tag is used to define the "article title", so it is inappropriate. It will cause the
There is a difference between the article content page and the homepage. For search engines, it is the article content that is valued. , and the article title is undoubtedly the most important weight to attract search engines. At this time, it would not be a waste if the only
The definition of website name and website subtitle is replaced by
If there is no article subtitle, it is best to leave it empty just like the
Now let’s summarize:
I think h1 should be defined in different ways on different pages, such as:
The above is the detailed content of What is html h1 tag? Detailed introduction to how to use html h1 tag. For more information, please follow other related articles on the PHP Chinese website!