1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML5 <section> Nestling?

Discussion in 'Off Topic' started by James, Oct 18, 2010.

  1. James

    James Well-Known Member

    Is nestling section elements bad? The spec recommends that the section element isn't used as a container, but I used it as one.


    <section><!-- wrapping section -->
    <header><-- header of HTML page (logo, nav, etc) -->
    <section><!-- the body of the page -->
    <footer><!-- the footer of the web page (copyright, etc) -->
    </section><!-- closing section wrapper -->
    The spec states:
  2. Blandt

    Blandt Well-Known Member

    Then use <div>s as the specs states ...

    It's good to pick up the good habits

Share This Page