About the location of the H1 tag in XHTML

About the location of the H1 tag in XHTML
There has been a lot of discussion about H1 recently (in the content page of the article), and there are roughly two situations:
1. H1 should be used for the title of the article. 2. H1 should be used for the title of the site .<br />I believe that most people prefer the first method: using it in the title of the article. From the perspective of the article, when users enter the content page, what they want to see is of course the content of the article. The title of the article is naturally the most important and should be highlighted.
OK, the above is from the perspective of the article, what if we look at it from the perspective of the page?
In addition to the article content and links derived from the content, the page also contains navigation, advertisements, searches, and other content that is not directly related to the article content. In a page, the article is just one component. From a semantic point of view, a page has only one big title (H1) to summarize the content of the page (including non-article parts). Therefore, H1 is more accurate for site titles than for article titles. Note that H1 and title are different.
Here we also address some ideas raised by some students in the discussion:
1. Questions about SEO (H1 has an impact on SEO)
2. Issues related to semantics <br />These two issues are contradictory. Sometimes when doing SEO, you have to give up semantics. With the domestic SEO methods, there is basically no semantics. Sadly, most of the students who build websites nowadays focus on SEO.
H1 does have an impact on SEO, but it is not indispensable. Its weight is much lower than the information in the header of the page. Why not pay attention to the header information of the page? Moreover, if semantics is done well, it will not have a negative impact on SEO. Why do we have to go into this rut?
I think the content in the body should be what it is, and the focus should be on semantics, because this part is mainly for users to see, and it is also to adapt to multiple terminals. Some students asked you if you also used hidden text. Yes, that is for semantics. On terminals that have no style or do not support style, it is to make the content more readable, not for SEO. SEO should focus on the head, which is also what search engines value most. For example, meta contains many attributes for search engines.

<<:  Analysis of the reasons why the index does not take effect when searching in the MySql range

>>:  Docker online and offline installation and common command operations

Recommend

Solution to the problem that Centos8 cannot install docker

Problem [root@zh ~]# [root@zh ~]# [root@zh ~]# yu...

Analysis of slow insert cases caused by large transactions in MySQL

【question】 The INSERT statement is one of the mos...

How to configure whitelist access in mysql

Steps to configure whitelist access in mysql 1. L...

Develop calculator example code using native javascript

The main function of a calculator is to perform n...

Vue implements student management function

This article example shares the specific code of ...

View the port number occupied by the process in Linux

For Linux system administrators, it is crucial to...

JavaScript mobile H5 image generation solution explanation

Now there are many WeChat public account operatio...

Analysis of pitfalls in rounding operation of ROUND function in MySQL

This article uses examples to illustrate the pitf...

Open the Windows server port (take port 8080 as an example)

What is a Port? The ports we usually refer to are...

Pure CSS to achieve click to expand and read the full text function

Note When developing an article display list inte...

Sample code for implementing image drawer effect with CSS3

As usual, let’s first post the picture effect: Th...

How does MySQL ensure master-slave consistency?

Table of contents The basic principle of MySQL ma...