<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>ボタンのように機能するリンクを設定しなさい</title>
<style>
body,ul,li {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
body {
font-family:
"Hiragino Kaku Gothic ProN",
Meiryo,
sans-serif;
padding: 50px 0 0 100px;
}
ul {
width: 220px;
list-style: none;
}
li {
margin: 4px;
background-color: skyblue;
}
li a {
padding: 10px;
font-size: 20px;
display: block;
}
a:link {
color: white;
}
a:visited {
background-color: turquoise;
color: white;
}
a:hover {
background-color: coral;
color: white;
}
a:active {
background-color: lawngreen;
color: white;
}
</style>
</head>
<body>
<ul>
<li><a href="#">a-link-skyblue</a></li>
<li><a href="#">a-visited-turquoise</a></li>
<li><a href="#">a-hover-coral</a></li>
<li><a href="#">a-active-lawngreen</a></li>
</ul>
</body>
</html>