Pseudo-Classes

Pseudo-Classes are selectors that permit selection based on information outside of the document tree.

Syntax

:pseudo-class

Examples

active

any-link

blank

checked

default

dir

disabled

empty

enabled

first-child

first-of-type

focus

focus-within

fullscreen

hover

in-range

indeterminate

invalid

lang

last-child

last-of-type

link

local-link

not

nth-child

nth-col

nth-last-child

nth-last-col

nth-last-of-type

nth-of-type

only-child

only-of-type

optional

out-of-range

placeholder-shown

read-only

read-write

required

root

scope

target

valid

visited

Home Menu