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

CSS CSS Basics (2014) Basic Selectors ID Selectors

Can I use header tag and then header tag again with others tags ?

Is it right ?

You can but normally there's only one header and one footer in a website.

https://www.w3schools.com/html/html5_semantic_elements.asp

1 Answer

Steven Parker
Steven Parker
231,248 Points

As stated on the MDN page:

a <header> element is intended to usually contain the surrounding section's heading...

So yes, it would make perfect sense to have a header tag in each section on the page. But note that a <header> element must not be a descendant of an <address>, <footer> or another <header> element.