A structured label
In the previous HTML page, we basically used the div+css layout. While the search engine to crawl the content of the page, it can only guess the content of one of your div is the content of the article container, or the navigation module container, or the author introduced the container and so on. That is to say, the whole HTML document structure is not clear, HTML5 in order to solve this problem, specifically added: header, footer, navigation, article content and other structure-related structural element tags.
Before we talk about these new tags, let's look at the layout of a normal page:
We see very clearly, a normal page, there will be the head, navigation, article content, as well as the attachment of the right column, as well as the bottom of the module, and we are through the class to distinguish, and through the different CSS style to deal with. But the relative class is not a universal standard specification, the search engine can only guess the function of a certain part, the other is this page program to the visually impaired people to read, the document structure and content will not be very clear. The new layout that HTML5 new tags brings is the following scenario:
Difference between two article and section
Article: An article should have its own meaning and it should be possible to distribute it independently of the rest of the site.
Section: Defines the sections in the document (the segments, sections). such as chapters, headers, footers, or other parts of the document.
Summarize:
The article element can be viewed as a special type of section element, which emphasizes independence and local integrity more than the section element.
The section element emphasizes fragmentation or chunking, while article emphasizes independence. Specifically, if a piece of content is relatively independent and complete, the article element should be used, but the section element should be used if you want to divide a piece of content into segments.
HTML5 Structured Labels