CSS margin, padding, and border quiz

10 questions to assess your CSS skills

Question 1

What is the default value of the CSS margin property?

Question 2

Which CSS property is used to set the padding on all four sides of an element simultaneously?

Question 3

What happens if you set a negative value for the CSS margin property?

Question 4

Which CSS property is used to specify the width of an element's border?

Question 5

How can you apply different padding values to each side of an element?

Question 6

What is the correct CSS syntax for setting the margin of an element to 10 pixels on all sides?

Question 7

Which CSS property is used to set the color of an element's border?

Question 8

What is the default value of the CSS padding property?

Question 9

How can you apply a border to only one side of an element?

Question 10

What does the CSS property "box-sizing: border-box;" do?
1