If we didnt wrap the header would it affect anything? I learned from mr gil hernandez to never wrap the header and the footer.
Jamie Reardon4,349 Points
You can create a div container (in this case named wrap) that will wrap around all the content (that means the header aswell) except for the footer, so that you have a fixed height on your content that therefore will push the footer down and keep it stuck there, regardless of the amount of content above it. That's why it's referred to as a "sticky footer".
yes, i dont like using the body element as a wrapper because if you want to give your full page a background color or image (or just any style) youll need to add it to the html element since its parent of the body and the root of the document. also if your site has elements that need to be placed outside of the wrapper, then it would not be appropriate to add them outside the body