freeCodeCamp/guide/english/css/selectors/pseudo/link/index.md

441 B

title
Link

The :link CSS pseudo-class is used to target all unvisited elements (e.g. anchor <a> elements) that have an href attribute, even if the href has an empty value.

General Syntax:

target:link

Example

/* Selects any <a> that has not been visited yet */
a:link { 
    color: red;
}

More Information: