Loading

Q1.

Padding adds space to which area?
A. Outside the element
B. Inside the element
C. Between elements
D. Only on the left side

Q2.

Which shorthand sets padding top & bottom to 10px, left & right to 20px?

A. padding: 10px;
B. padding: 10px 20px;
C. padding: 20px 10px;
D. padding: 10px 20px 10px;

Q3.

Which property sets padding only on the right side?

A. padding-right
B. padding-side
C. right-padding
D. padding-x

Q4.

What happens if you add padding to a box with a fixed width?

A. Width shrinks
B. Width increases unless box-sizing is border-box
C. Width stays the same
D. Padding is ignored

Q5.

Which CSS rule sets padding for all four sides individually?


A. A
B. padding: 10px all;
C. padding: top right bottom left;
D. padding: four;