Selector
Selector
*
#id
.class
.class,.class
element
el1,el2,el3
:first
:last
:even
:odd
:first-child
:first-of-type
:last-child
:last-of-type
:nth-child(n)
:nth-last-child(n)
:nth-of-type(n)
:nth-last-of-
type(n)
:only-child
:only-of-type
parent > child
parent descendant
element + next
element ~ siblings
:eq(index)
:gt(no)
:lt(no)
:not(selector)
:header
:animated
:focus
:contains(text)
:has(selector)
:empty
:parent
:hidden
:visible
:root
:lang(language)
[attribute]
[attribute=value]
[attribute!=value]
[attribute$=value]
[attribute|=value]
[attribute^=value]
[attribute~=value]
[attribute*=value]
:input
:text
:password
:radio
:checkbox
:submit
:reset
:button
:image
:file
:enabled
:disabled
:selected
:checked