HTML 5 Page without main
?

后端 未结 1 1795
说谎
说谎 2020-12-04 02:34

Is it bad to nave no

?

I have this basic structure but I am thinking about wrapping a header arround everything between the body start and

1条回答
  •  误落风尘
    2020-12-04 03:22

    Decide for every sectioning root element (e.g., body) and every sectioning content element (e.g., article) if it contains content which is appropriate for header. The spec defines that it’s for "introductory content", and gives the following examples:

    • introductory or navigational aids
    • heading (an h1h6 element) (not required)
    • table of contents, a search form, or any relevant logos

    If there is such content, use a header element. If the content in that sectioning root/content element is scattered, use several header elements.

    Keep in mind that the header always applies for "its nearest ancestor sectioning content or sectioning root element":

    
      

    0 讨论(0)
提交回复
热议问题