1. Structure

  2. Sectioning content

    Sectioning content is content that defines the scope of headings and footers.

    Each sectioning content element potentially has a heading and an outline.

  3. Implicit sections

    MarkupOutline
    <h1>Foo</h1>
    <p>Lorem ipsum foolor</p>
    <h2>Bar</h2>
    <p>Lorem ipsum barlor</p>
    <h3>Baz</h3>
    <p>Lorem ipsum bazlor</p>
    <h2>Qux</h2>
    <p>Lorem ipsum quxlor</p>
    <small>foobar</small>
    Foo
      Bar
        Baz
      Qux
      foobar
    
  4. Explicit sections

    MarkupOutline
    <h1>Foo</h1>
    <p>Lorem ipsum foolor</p>
    <section>
    <h1>Bar</h1>
    <p>Lorem ipsum barlor</p>
    <h2>Baz</h2>
    <p>Lorem ipsum bazlor</p>
    <h1>Qux</h1>
    <p>Lorem ipsum quxlor</p>
    </section>
    <small>foobar</small>
    Foo
      Bar
        Baz
      Qux
    foobar
    
  5. Creating an outline

    hgroup

    The point of hgroup is to mask an h2 element (that acts as a secondary title) from the outline algorithm.

    The point of hgroup is to mask all but the highest-ranking heading element within from the outline algorithm.

  6. Sectioning roots

    These elements can have their own outlines, but the sections and headings inside these elements do not contribute to the outlines of their ancestors.

  7. Sectioning roots

    MarkupOutline
    <h1>Foo</h1>
    <p>Lorem ipsum foolor</p>
    <h2>Bar</h2>
    <p>Lorem ipsum barlor</p>
    <blockquote>
    <h3>Baz</h3>
    <p>Lorem ipsum bazlor</p>
    </blockquote>
    <h2>Qux</h2>
    <p>Lorem ipsum quxlor</p>
    <small>foobar</small>
    Foo
      Bar
      Qux
    
  8. Styles

    <style>
    h1 { color: green; }
    </style>
    <h1>What colour am I?</h1>
    <section>
    <style>
    h1 { color: red; }
    </style>
    <h1>What colour am I?</h1>
    </section>
  9. Scoped styles

    <style>
    h1 { color: green; }
    </style>
    <h1>What colour am I?</h1>
    <section>
    <style scoped>
    h1 { color: red; }
    </style>
    <h1>What colour am I?</h1>
    </section>
  10. Global styles

    article, aside, details,
    figure, footer, header,
    hgroup, nav, section {
    	display: block;
    }
  11. Internet Explorer

  12. New elements

    Document with structural elements and no divs
  13. New and old elements

    Document with structural elements and divs
  14. ARIA roles

    Document with divs and roles
  15. Classes

    Document with divs, classes and roles
  16. Options

  17. Resources

  18. Get involved

    WHATWG