0 Replies Latest reply on Sep 5, 2011 5:42 AM by man at work

    Headers or Headings H1-H6?

    man at work Level 1

      Hello!

      What is the best practise using headers or headings h1-h6 in the sectional elements section, article, aside, nav?

      I´ve noticed that the following code creates an "Untitled Section" in the document outline:

       

      <section>

      <header>Section Name</header>

      </section>

       

      while these two combinations creates a section in the ouline.

       

      <section>

      <header><h1>Section Name</h1></header>

      </section>

       

      <section>

      <h1>Section Name</h1>

      </section>

       

      Does it matter which one you choose since they both generate the same result

      or is there more to it?

      Anyone who can clarify this?