Article introduction of Wulin.com (www.vevb.com): Those newly added tags - html5 study notes.
html5 has been out for a while. Although the evil IE cannot be hard on its temptation, many excellent websites have begun to be used. After all, the general trend is going to be high.
I'm recently judging html5 animal books. Although I've seen many things about animal books in some essays on the Internet, it's an animal book after all, and there are some small details that are worth reading.
OK, let’s get to the topic and tell me what I think:
section is a semantic divMany people are puzzled why html5 has such a short and lean thing without using it, so they have to use section?
My understanding is that div is still useful, it can represent something semantic. The section is like a sandbox that separates different parts, blocks, modules.
The header is not necessarily uniqueThe first thing I want to talk about is this header tag. I have read a lot of essays about html5 before, and it gives people the feeling that the header tag evolved from the header of the website. In fact, it is not the case, just like many people used to think that only one h1 is allowed.
Because the header can be included in the article as the header tag of the article. See (page 49)
hgroup acts as a directory guide in the header tagI have always been very confused about the role of hgroup, because in the examples shown on w3cschool, there are h* tag collections in hgroups, and the application scenarios of this kind of thing in actual applications are very narrow. But when you find that the header tag can be dropped in the article, this problem will be solved.
In fact, I personally think that the focus of this tag is on directory guidance. In the era when content is king, the hgroup tag will bring certain contributions to SEO.
With the sandbox, the website structure becomes less terribleMany people think that only one h1 can be used in a web, not too much h2, and a small amount of h3, and even no trace of h4 can be found.
The facts tell us that we can even use h1 in the nav tag.
Then writing this way will not only not confuse SEO and focus on the key points. And it can make the web look more graceful and concave.