Child Filter
-
:first-child Selector
Selects all elements that are the first child of their parent.
-
:last-child Selector
Selects all elements that are the last child of their parent.
-
:nth-child() Selector
Selects all elements that are the nth-child of their parent.
-
:only-child Selector
Selects all elements that are the only child of their parent.