What's the difference between padding and margins?

The padding is inside the border and the margin is outside the borderThe padding is outside the border and the margin is inside the borderThe padding is the distance between element borders

The padding is inside the border and the margin is outside the border.