In this article, we do not talk about the basics of HTML to talk about the new knowledge added in H5
? First of all, let's take a look at H5. Add those new structural elements
| Label |
Description |
| header |
page or a header of a chunk in a page, usually some boot and navigation information. |
| nav |
Link groups that can be navigated as pages |
| section |
a content chunk in a page, usually composed of content and its title |
| article |
represents a separate, complete, relevant block of content that can be used independently of the rest of the page using |
| |
non-body content is separate from the main content of the page and is deleted without affecting the contents of the page |
| footer |
pages or a chunk of a page |
? After reading the above tags, we found that the tags themselves do not have their own special features in fact, the Almighty Div can do these things why do you want to add these tags in the H5?
This is to mention the concept of semantic tags , recall that we usually use the div to complete the structure of the page, generally we will use the ID class to identify
The purpose of these elements, but from the perspective of the machine search engine, it does not know what these div elements specifically used to do, because it does not understand the ID class meaning, so in order to allow the machine to understand the meaning of these elements, we will use these semantic tags instead of the previous Div layout style of the Web page structure for the search engine more friendly, so that the content of the Web page can be better crawled by the search engine.
We use a more violent comic site to more intuitively explain the role of these tags
before semantic tagging is done ,
After having a semantic label, the practice is
HTML5 New structural elements