link

The link CSS pseudo-class applies to links that have not been visited.

Syntax

selector:link
{
    property: value;
}

Examples

active

any-link

hover

visited

active

any-link

blank

checked

default

defined

dir

disabled

empty

enabled

first-child

first-of-type

focus

focus-visible

focus-within

fullscreen

has

hover

in-range

indeterminate

invalid

is

lang

last-child

last-of-type

local-link

modal

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

picture-in-picture

placeholder-shown

read-only

read-write

required

root

scope

target

valid

visited

where

World Wide Web Consortium (W3C)

Home Menu