This is a very basic question, but I have always wonder why?
I have this html
code:
div {
margin: 20px;
height: 100px;
background: papayawhip;
}
<body>
<div>Hello world!</div>
</body>
Margin collapse applies up until the body
element and stops in the html
element.
why?, It's because the root scope for margin collapse it's the html
?