Why does the HTML5 header element require a h tag?

后端 未结 3 1528
谎友^
谎友^ 2020-12-06 18:08

According to HTML5Doctor.com and other HTML5 introductory sites, the header element should contain a h1-h6 tag plus other navigational or introductory content. However, the

3条回答
  •  -上瘾入骨i
    2020-12-06 18:35

    Don't get confused by "should" contain and "must" contain. You aren't required to have anything inside the header you don't want but the 'semantic' purpose of the header is that is where you should look for and place such things, at the head of a document. Just as you would look for the title or introduction or table of contents at the top of a printed page.

提交回复
热议问题