HTML5 New <header> Element

I understand its functionality. Can I believe that now we sandwich all the h1-h6 tags between them? Did I miss something?

Please be careful, I'm just trying to learn.

+3
source share
3 answers

According to specification:

The title element usually contains the section title (h1-h6 element or hgroup element), but this is not required. The header element can also be used to wrap the contents of a partition table, search form, or any associated logos.

http://dev.w3.org/html5/spec/Overview.html#the-header-element

No, you do not need to wrap all headings in a heading tag. This is for the section title and / or related items.

+3
source

- , . -, . , , - .

, . "Fireman", "Policeman" "Soldier", <article>, <header>, , . -.

+1

Header tagHtml5 mainly uses the page title header. To group tags H1 ... H6, a tag was introduced in html5. Therefore, we can use this tag. And these tags are also useful for web crawlers. If you use the tag hgroupon your page, then during the search engine’s search, they consider it as something important and give it more weight.

Studying the issue of impotence of html5 tags for SEO, I found this link. link text

0
source

Source: https://habr.com/ru/post/1786563/


All Articles