HTML5 Structured Labels

Source: Internet
Author: User

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

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.