HTML5 <section> Nestling?

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.

Example:

HTML:
<body>
<section><!-- wrapping section -->
<header><-- header of HTML page (logo, nav, etc) -->

</header>

<section><!-- the body of the page -->

</section>

<footer><!-- the footer of the web page (copyright, etc) -->

</footer>
</section><!-- closing section wrapper -->

The spec states:
The section element represents a generic document or application section…The section element is not a generic container element. When an element is needed for styling purposes or as a convenience forscripting, authors are encouraged to use the div element instead.
 
Top Bottom