CSS Selector Level 1 » Link history pseudo-class

This link history pseudo-class selects only unvisited links. If it's needed to style only non-visited links, you need to set the :link selector before the others.

# Syntax

Copy
:link {
    /* declarations */
}

# Example

Copy
:link {
    color: green;
}

In this example will the second link - which doesn't exists - be in green color.

Try example in CodePen

# Browser support

Platform Chrome Firefox Safari Edge Internet Explorer Opera
Desktop Yes (1) Yes (1) Yes (1) Yes (12) Yes (3) Yes (3)
Mobile Yes (1.5) Yes (1) Yes (3.1) Yes (12) Yes (3) Yes (3)

Please wait a moment, the comments start loading now...
explorermozillachromesafariopera info external