offline version v3


137 of 298 menu

link pseudo-class

The link pseudo-class specifies styles for unvisited links. Typically, this pseudo-class is used in conjunction with hover, visited and active pseudo-classes.

Syntax

a:link{ }

Example

An unvisited link will be red, a visited link will be blue. If you hover over it with the mouse, it will turn green, and if you press the left mouse button and hold it, it will turn black (active state):

<a href="#">link</a> a:link { color: red; } a:visited { color: blue; } a:hover { color: green; } a:active { color: black; }

:

enru