.case1 {
margin-bottom: 10px;
}
.case2 span {
margin-bottom: 10px;
}
<div class="case1">
<span>something</span>
</div>
<div class="case2">
<span>something</span>
</div>
If apply css as follows, the result you see on the screen is the same. So, which of the two methods is best practice and why?
- thx answers. If it is a p element and not a span element, the result is likely to be the same. What is the best practice in this case?