In the past few years, DIV+CSS was very popular in website development, and it caused a lot of crazy wolves at that time. But later for front-end development, pure DIV+CSS has been discarded by programmers, and the word tag semantics came out.
So what does this word mean? The following is excerpted from Baidu Encyclopedia:
html tag semantics: that is, the meaning of html tags.
First of all, it is about the difference between semantics and default styles. The default style is the expression of some commonly used tags set by the browser. I personally think that its main purpose is to let everyone intuitively understand the uses and functions of tags and attributes. It is obvious that the Hx series looks very similar to the title because it has bold and larger font sizes. , used to distinguish it from other words and plays an emphasis role. As for the list and table, it's obvious to tell you what they do.
So how do we understand this passage very well? In fact, this passage shows that it is to use whatever label you should use. Don’t deliberately use DIV layout. For example, if bolding is done, you can use it directly to complete it. There is no need to use class for rendering. Natural points. For example, you can also use table table layout appropriately on the page. Who says that tables are not conducive to SEO? Even Baidu uses forms. So, which one is convenient and which one is used for which structure is clear. Eliminate the statement of DIV+CSS layout.