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 trialvedant shelat
16,877 PointsI still dont get the concept of adding <div id="content"> in header.php & not closing div tag in suggest.php? HELP!
I checked related questions ask here, but still dont get it. At this point we dont have the footer.php and the closing content div tag is closed before the opening tag of footer in index.php, so how does it closes automatically in suggest.php?? Thanks!
2 Answers
Adam N
70,280 PointsLooks like when the page is rendered the closing div tag is automatically inserted. See this screenshot:
webremy
8,606 PointsYou are correct in your understanding on what should and should not be included in a shared file. The div content should not have been copied as it limits future options. For the lesson I think they are showing scenario when a div tag may be split up between shared and not shared files and how to account for it so to not get lost among closing div's.