Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Basics Structuring Your Content Semantic HTML: <header>, <footer> and <section>

header or footer tags can be nested in section tag?

I wonder if developers use header or footer tags inside section tags for building webpage in someway? I think maybe it can be possible but I am not sure if it is common used way. How about to nest section tag inside header or footer tags?

1 Answer

Steven Parker
Steven Parker
229,644 Points

You can nest a section tag inside a header or footer tag.

You can also use header or footer tags inside section tags, but only if those section tags are not nested inside another header or footer tag.

I don't think either of these constructs is common, but no doubt someone will use them sometimes.