DIV CSS was very popular in website development a few years ago, and it caused a stir at that time. But later on, pure DIV CSS was abandoned by programmers for front-end development, and the term "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 the html tag .
First of all, it’s about the difference between semantics and default styles. The default style is the expression of some commonly used tags set by the browser. Personally, I think its main purpose is to let everyone intuitively understand tags (markup) and attributes ( attribute), it is obvious that the Hx series looks a lot like the title because it has bold and larger font size. , used to distinguish it from other words and play a role in emphasis. Lists and tables clearly tell you what they do.
So how do we understand this passage well? In fact, this passage shows that you should use whatever tags you want. Don't deliberately use DIV layout. For example, if you want to bold something, you can use it directly. There is no need to use classes for rendering. It is more natural, such as in the page. Table layout can be used appropriately. Who said tables are not conducive to SEO? Even Baidu uses tables. So whichever one is convenient should be used, and whichever one has a clear structure should be used. Put an end to the idea of DIV CSS layout.