Which pseudo-class targets every second row?
-
A
:nth-child(2)
-
B
:nth-child(even)
Correct answer
-
C
:nth-of-type(2)
-
D
::even
Correct answer
B. :nth-child(even)
13 views
Explanation
:nth-child(even) selects even rows.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ