Skip to main content
CSS-Tricks
Articles
Videos
Almanac
Newsletter
Guides
DigitalOcean
DO Community
Search
CSS Almanac
→
Selectors
Selectors
A
::before / ::after
:active
:any-link
:autofill
Adjacent sibling
[attribute]
B
::backdrop
:blank
C
:checked
:current
Child
Class
D
:default
:dir()
:disabled
Descendant
E
:empty
:enabled
F
::file-selector-button
::first-letter
::first-line
:first
:first-child
:first-of-type
:focus
:focus-visible
:focus-within
:fullscreen
:future
G
General sibling
H
:has()
:hover
I
:in-range
:indeterminate
:invalid
:is
ID
J
K
L
:lang()
:last-child
:last-of-type
:left
:link
M
::marker
N
:not
:nth-child
:nth-last-child
:nth-last-of-type
:nth-of-type
O
:only-child
:only-of-type
:optional
:out-of-range
P
::placeholder
:past
:placeholder-shown
Q
R
:read-write / :read-only
:required
:right
:root
S
::selection
T
:target
Type
U
:user-invalid
Universal
V
:valid
:visited
W
:where
X
Y
Z