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

PHP

Gideon Grossman
Gideon Grossman
341 Points

When including header.php in catalog.php, why don't we need to add a closing </html> tag to catalog.php?

There is an opening <html> tag in "header.php". When we include "header.php" at the top of catalog.php, index.php and suggest.php, there is no closing </html> tag. Shouldn't this cause a problem?

2 Answers

Joe Schultz
Joe Schultz
6,191 Points

The closing tag will be in the footer.php file.

Paul M
Paul M
16,370 Points

The include in PHP will have the closing </html> tag almost as if you were placing it there