An+BAn+B generates positions
A sets the step and B the starting point; n takes integers from zero that produce positive indices. The odd and even keywords are equivalent to 2n+1 and 2n.
of <selector-list>of filters before counting
In :nth-child() and :nth-last-child(), the optional list first reduces the sibling candidates.
:nth-last-…last reverses the direction
The nth-last variants count from the end without reversing DOM order.
:…-of-typeof-type separates by name
Only siblings with the same element type as the subject compete.