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
173,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.