<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>リンクの背景色(疑似クラス)</title>
<style type="text/css">
ul {
list-style-type: none;
}
li a {
display: block;
color: white;
font-size: 1.5em;
font-weight: bold;
width: 300px;
padding: 2px 10px;
margin: 2px 0px;
text-decoration: none;
}
li a:link {
background-color: coral;
}
li a:visited {
background-color: turquoise;
}
li a:hover {
background-color: skyblue;
}
li a:active {
background-color: lawngreen;
}
</style>
</head>
<body>
<ul>
<li><a href="#">LINK-link-coral</a></li>
<li><a href="#">LINK-visited-turquoise</a></li>
<li><a href="#">LINK-hover-skyblue</a></li>
<li><a href="#">LINK-active-lawngreen</a></li>
</ul>
</body>
</html>