link

Browser Internet Explorer Netscape Opera Safari Firefox
Version 5.5 6.0 7.0 8.0 8.0 9.0 7.0 8.0 9.2 9.5 1.3 2.0 3.1 1.5 2.0 3.0
Supported Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes

Short information
CSS CSS1
Applied To links (tag <A>)
HTML analog <body LINK="#RRGGBB">
Reference to specification http://www.w3.org/TR/CSS21/selector.html#link-pseudo-classes

Description
Pseudo class link is used for links that have not been visited by users yet. Also it specifies the style appearance.

Syntax

A:link { ... }

Arguments
No.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  <title>link</title>
  <style type="text/css">
   a:link {
    color: #0000d0; /* Link color */
   }
   a:visited {
    color: #900060; /* Link visited color */
   }
  </style>
 </head>
 <body>
 
   <p><a href="task2.html">Find out the weight of  out-of-order load (stone)</a></p> 
   <p>Given: chair, stick, rope, bismar with limited weight.</p>
 
 </body>
</html>

The result of this example is shown on the figure 1