all elements 1 level below
child selector
>
all descendents
space
specific attribute value
selector[attribute=”value”]
custom attribute value
selector[data-attribute=”value’]
sibling
~
adjacent
+
select the nth child
:nth-child(2),
:nth-child(2n)
nth of type
:nth-of-type(2)
:nth-of-type(2n)
select elements that are the only child of parent
:only-child
select elements that are the only child of specific type of its parent
:only-of-type