Basic CSS - Adjust the Padding of an Element

Can anyone explain why is padding used? what does it do?

It is the space between an element content and its border. Its kinda like margin, while margin creates space around, padding creates space within. So it is used for spacing purposes