HTML & CSS · Senior · Question 75 of 75

What does li:nth-child(2 of .visible) select?

Explanation

The of S syntax filters before counting, which fixes zebra striping in filtered lists. Plain :nth-child(2).visible counts all siblings first.

Further reading

Problem with a question

HTML & CSS · Senior · question 75

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz