XHTML and CSS Tutorial - 25 - Styling Links

<!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>

<html>



<head>

<style type ="text/css">
A:link{Color:red;
Text-decoration:none;}

A:visited{Color:green;}

A:hover{background-color:blue;
Color:white;
Text-decoration:underline;
Font-weight:bold;}
A:active{background-color:orange;

</style>

</head>

<body>
<a href="http://google.com">Google</a>
This is just normal text

</body>

</html>

Comments