Home Menu

Pseudo-Classes

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

Syntax

:pseudo-class

Examples

active

any-link

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

not

nth-child

nth-last-child

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

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms