però ti ostini a non fare richieste più precise...vabbè me le invento...cercherò di fare un esempio il più possibile completo:
XHTML
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
<head>
<link rel="shortcut icon" href="favicon.ico"></link>
<title>Pagina di prova con link di colore diverso</title>
<style type="text/css" media="screen">
@import url(stile.css);
</style>
</head>
<body>
<h1>Link di colore diverso</h1>
<a href = "http://indirizzo.com">Primo link</a>
<a class = "linkimportante" href = "http://indirizzo.com">Link importante</a>
</body>
</html>
CSS (stile.css)
codice:
a:link{
background-color: Black;
color: White;
font-family: serif;
}
a:visited {
background-color: Gray;
color: White;
font-family: serif;
}
a:active{
background-color: Blue;
color: White;
font-family: serif;
}
a:hover{
background-color: Silver;
color: White;
font-family: serif;
}
a:link.linkimportante, a:visited.linkimportante, a:active.linkimportante, a:hover.linkimportante {
background-color: Yellow;
color: Red;
font-family: sans-serif;
}