← `:nth-child(even)` Counts Hidden Rows. `of S` Fixes Your StripesQuiz

:nth-child(An+B of S) — counting by meaning, not position

Five to ten questions on why plain :nth-child breaks when you hide elements, and how the `of S` argument fixes it by counting only the elements that match a selector.

questions7
pass mark70%
resultsat the end

No account needed. Answer all 7 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.