Home Tutorial CSS A CSS Elements
A CSS Elements PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 02:48
Defines the properties for a link or a target.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
  • IE: IE 5-6 only supports :hover on links.

Example

 

This example shows a set styles of anchor elements that will visually change color and text-decoration depending on state and mouse behavior:


a {
color: blue;
text-decoration: underline;
}

a:active {
color: yellow;
text-decoration: none;
}

a:link {
color: blue;
text-decoration: underline;
}

a:visited {
color: purple;
text-decoration: none;
}

a:focus {
color: red;
text-decoration: none;
}

a:hover {
color: red;
text-decoration: none;
}

Remarks

Combine different anchor styles to create visual cues for your links.

 
 

Login Form



Who's Online

We have 32 guests online


PHYSICS DICTIONY  PHP MeeLink.com  PR page rank  thainaturecure   wedding
[webdirectory] [thai webdirectory] [ptc forums ] [jabjai board] [tutor php] [meelink blog][link-mee.blog][Favorites online][ptc ref online][online payment] THF