It is semantically correct to use
inside
?

后端 未结 2 421
长情又很酷
长情又很酷 2021-01-12 16:27

All examples I found on internet refers to using

inside
, but nothing related to the use of
e

2条回答
  •  执笔经年
    2021-01-12 17:01

    Yes it is semantically correct to use header inside section

    header – There is a crucial difference between the header element and the general accepted usage of header (or masthead). There’s usually only one header or ‘masthead’ in a page. In HTML5 you can have as many as you want. The spec defines it as “a group of introductory or navigational aids”. You can use a header in any section on your site. In fact, you probably should use a header within most of your sections. The spec describes the section element as “a thematic grouping of content, typically with a heading.”

    Source

    You can also check header W3 specs here

提交回复
热议问题