HTML5 attachment

My understanding (correct me if I am wrong) is that the "section" tag in html5 is used as a wrapper div. If right, good, good, no problem. But what about nesting? As we all know, it quite often nested inside each other. Does this mean that in html5 we are as follows "section"?

+3
source share
2 answers

Sections can and should be nested if this indicates content. See for example http://www.mattryall.net/blog/2008/10/html-5-headings-and-sections and http://blog.whatwg.org/is-not-just-a-semantic

From the W3C (my attention):

DIV SPAN id . (SPAN) (DIV),

Divs . . , , , --. . - .

+6

html5 , ... :

  <section>
    <section>
      <section>
        <h1>...</h1>
        <p>...</p>
      </section>
    </section>
  </section>

- , :

<section>
  <article>
    ...
  </article>
</section>
<section>
  <article>
    ...
  </article>
</section>

, , , , . div.

html5 , ... :

<main>
  <div>
    <div>
      <section>
        <header>
          <h1></h1>
          <time datetime=""></time>
        </header>
        <img src="" alt="">
        <p></p>
        <p></p>
        <p></p>
      </section>
    </div>
  </div>
</main>
0

All Articles