As we all know, H5 is the most important feature is the label semantics, can enable us and the browser to better understand the structure and reading, section and article is two new semantic tags. The use of these two tags is the structure of both the title and the content of the body, then how to distinguish them in the use process? Let me tell you a little bit about my own ideas.
When we read a book, we usually see the following structure in the catalog search, as follows:
Chapter I.
Section I.
Section II
Section III
Chapter II
Section II
Section III
Chapter III
Fourth Chapter
As can be seen from the above directory structure, the first and second chapters have subsections, the third chapter and the fourth chapter is a separate piece of article. The subsections of this section are small branches of the chapter, although there is a complete structure of the article, but it can not be written alone, but with a small section of the composition, but the main body of the structure of the large chapters, and some chapters (such as chapter III and the fourth chapter) only a separate subject, do not need to supplement the chapter, independent written In fact, this is the article and section of the structure of the use, each article label for a large chapter, can be used alone but do not interfere, independent writing, and the large chapters of the small section is the section, although there is a clear title and text is attached to the main section--article body and cannot be written independently.
Summary point, the most important is the subordinate relationship, section can not be independent, its appearance must be under the article!
The above content is only a personal point of view, there are suggestions and criticisms please leave a message to enlighten!
Differences between section and article tags in H5