Differences between section and article tags in H5

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.