0
Why would you use a Div wrapper in html that contains the same things as body?
Basically I see html that has a <body> and right after <div class ="container"> Is placed. It contains the same thing as body. So why wouldn't you just customize body instead of the container.
3 Respuestas
+ 3
If there were only one <div>, then it makes little sense. But if there were multiple <div> all sharing the same class, then perhaps the code author thought about
+ Swapping which one was visible at one time
+ Ease of CSS style application
To name a few ...
+ 1
Could you share the concerning code bit so we could look into it together?
0
I mean a code like this for example
<Body>
<Div class = "container" >
<p>Hi</p>
</Div>
</Body>