As shown in the figure below, when I select the first a tag, the browser will include the following a tag, and the margin of the P element in the A tag is also collapsed with the .box2.How to explain this ?
.box1 {
width: 100px;
height: 100px;
background-color: antiquewhite;
}
p {
margin-top: 10px;
}
<div class="box1"></div>
<div class="box2">
<a href="#">
<p>abc</p>
</a>
<a href="#">abc</a>
</div>