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
Jose Robles
1,229 PointsIs it good practice to use the wrapper div as the foundation of my web content instead of the body tag?
While completing the early courses of html and css I notice the instructor did not use the method mentioned in the question. But after much research I notice people would use the <div id="wrapper"> as the foundation to their web content instead of the body tag.
1 Answer
Karol Zientek
2,006 PointsBasically if you would like to make a website you have to use <body> tag and <head> tag to create proper website. Look at this code below:
<html>
<head>
</head>
<body>
<div id="wrapper">
<!-- Content of the site in this div tag-->
</div>
</body>
</html>
As you see to create a website you don't have to use div tag, 'cause div tag stands for "divide", it means that you are dividing your website to some smaller blocks of some content. You know, you don't have to use div tag, but If you would like to create big sites - you will have to. Just remember, div stands for divide, it means that you are dividing your website to small pieces.