Margin in the box model



Why is margin part of the box model if it is outside of the box?


It is mainly part of it for two reasons, the first one is the easiest to take in:
the world wide web consortium (W3C), which is an international community in charge to develop and set the standards for best web programming practices, have decided that the most efficient way to manipulate elements is using the box model as we know it, where --and this is the second reason – margin is a property set on the element and it directly affects it in relation to what surrounds it.