Intermediate HTML & CSS
Q59 / 100

What does the ":nth-child(2n)" pseudo-class select?

Correct! Well done.

Incorrect.

The correct answer is B) Every even-numbered child element (2nd, 4th, 6th, etc.) of its parent

B

Correct Answer

Every even-numbered child element (2nd, 4th, 6th, etc.) of its parent

Explanation

:nth-child(2n) matches child elements whose position is a multiple of 2 (i.e. even-positioned children), often used for zebra-striping rows.

Progress
59/100