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 Using Multiple <header> and <footer> Elements

At 1:41 of the video, Guil wrapped the articles section of the page as the header, why did he put the <header> tag belo

  1. At 1:41 part of the video, Guil wanted the Articles section of the page as the header, why did he put the <header> tag below the <article> tag? Will it matter if I put the <header> tag before the <article> tag? Because after all, the goal is to emphasize that the Articles section are the header section of the page.

  2. Also per article, he wrapped each one of them in <header> </header> tags? Is it not redundant? Can we just wrap the whole articles with one opening header and one closing header tags, to indicate that these articles are header section?

1 Answer

Steven Parker
Steven Parker
231,269 Points

There are two common uses for "header'. For the entire page, and for an article. Each article can have its own "header", which would normally contain a title and/or attribution.

That's the kind of header being added in the video.

Got it. Thank you!!