HTML & CSS · Senior · Question 75 of 75
What does li:nth-child(2 of .visible) select?
- ✓Correct answer: The second
liamong those that have the classvisible - 2The second
liif it also has the classvisible - 3Every second
.visibleelement
Explanation
The of S syntax filters before counting, which fixes zebra striping in filtered lists. Plain :nth-child(2).visible counts all siblings first.