Reputation: 4714
Are <section>
tags allowed to be included within another <section>
tag? Will it validate in HTML5?
Upvotes: 152
Views: 83510
Reputation: 260
Yes, since a website is generally divided into one or more sections, use it as long as you feel it describes the structure. A layout can have 1 or even tens of SECTION elements, just know that it is NOT a DIV replacement :) DIVs are still used and recommended (usually for grouping means).
Upvotes: 13
Reputation: 6541
Yes, that will work fine. At least, it works for me.
You can try it out here.
Upvotes: 6