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 Layout Basics CSS Layout Project Creating and Styling the Layout Containers

Adam Maley
Adam Maley
5,946 Points

</div> before the </header> tag?

Why would you put it before and not after the </header>?

I am even getting a red error highlight when I do what he did in the video.

Agnes Demes
Agnes Demes
6,613 Points

Can you Please show your code, will be able to help to see what is wrong

1 Answer

Steven Parker
Steven Parker
229,732 Points

Nested tags must not overlap, so an element that starts inside another element must be closed before the outer element is closed. The ordering of the start tags determines the order of the end tags, which much be the reverse of the starting order.

Adam Maley
Adam Maley
5,946 Points

Yes, for some reason I was not getting that...even though I learned that along time ago. It just seemed odd to me because he was trying to use a container to "contain" all of the tags, but the tags must be in reverse.