Skip to main content
CSS-Tricks
Articles
Notes
Links
Guides
Almanac
Shuffle
Search
CSS Almanac
→
Selectors
Selectors
A
::before / ::after
:active
:any-link
:autofill
Adjacent sibling
[attribute]
B
::backdrop
:blank
C
:checked
:current
Child
Class
D
::details-content
:default
:defined
: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
:popover-open
Q
R
:read-write / :read-only
:required
:right
:root
S
::selection
T
:target
Type
U
:user-invalid
Universal
V
::view-transition
::view-transition-group
::view-transition-image-new
::view-transition-image-old
::view-transition-image-pair
:valid
:visited
W
:where
X
Y
Z