What is the difference between padding and margin?
Both padding and margins are used to create extra spaces. But the main difference is -
- padding is used to create space inside the element / container.
- margin is used to create space around the element / container.