<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>【擬似クラスの練習】</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
#nav {
margin: 10px 0 0 30px;
padding: 20px;
background-color: #ccc;
}
ul {
list-style-type:none;
}
li a:link{
text-decoration: none;
color: #0000fe:
}
li a:visited{
color: #880088;
}
li a:hover{
color: #ff6600;
text-decoration: underline;
}
li a:active{
color: #ff0000;
}
</style>
</head>
<body>
<div id="nav">
<ul>
<li><a href="#">豚肉</a></li>
<li><a href="#">じゃがいも</a></li>
<li><a href="#">たまねぎ</a></li>
<li><a href="#">にんじん</a></li>
</ul>
</div>
</body>
</html>