CSS3
Exercise 1 / 15
Margins and Padding
Easy
10 points
Add 20px padding and 10px margin to the div.
Padding creates internal spacing (between content and border), while margin creates external spacing (between element and other elements). Values can be in px, em, rem, or %. This is fundamental for CSS layout.
Well done! 🎉
Your answer is correct! You earned 10 points.
Not quite...
Try again! You can do it.
Your code
CSS3
Result