Margin is the outer margin and padding is the inner margin
Today, I saw margin and padding when I was watching jQuery mobile. I remembered that I actually saw these two things when I was learning ANdroid, and there are also on the Android page layout.
I also remember that one is the outer margin and the other is the inner margin, but I have forgotten which one corresponds to which. Now that I have checked it, I quickly write it down in case I forget it in the future.