HTML5 <section> Nestling?


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:
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.