- index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sea</title>
<link rel="stylesheet" href="week1.css">
</head>
<body>
<div>
<img src="./images/gaori.jpg" alt="가오리" width="350" height="350">
<h1>Sea</h1>
<ul>
<a href="https://www.naver.com/" target="_blank"><li>가오리</li></a>
<a href="https://www.google.co.kr/" target="_blank"><li>악어</li></a>
<a href="https://www.daum.net/" target="_blank"><li>거북이</li></a>
</ul>
</div>
</body>
</html>
- style.css
body, ul {
margin:0;
padding:0;
}
body{
background-color: #B0C4DE;
}
div{
width: 400px;
height: 650px;
background-color: white;
margin: 150px auto;
border: 7px solid skyblue;
border-radius: 200px;
text-align: center;
}
img{
margin-top: 100px;
}
h1{
margin: 20px auto;
width: 100px;
color: skyblue;
border-bottom: 4px solid skyblue;
}
ul{
width: 120px;
margin: 0 auto;
list-style: none;
}
a{
text-decoration: none;
color: inherit;
}
li{
color: skyblue;
}
li:hover{
color:navy;
}
![](https://velog.velcdn.com/images/gaori/post/960f619b-c850-4a0a-9c81-06e50d9fedc4/image.png)
- index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apple</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<img src="./images/apple.jpg" alt="Apple">
<h1><a href="./week1.html" target="_blank">Apple</a></h1>
<ul>
<li><a href="./index_orange.html" target="_blank">Orange</a></li>
<li><a href="./index_kiwi.html" target="_blank">Kiwi</a></li>
<li><a href="./index_strawberry.html" target="_blank">Strawberry</a></li>
</ul>
</div>
</body>
</html>
- style.css
body, ul {
margin:0;
padding:0;
}
body{
background-color: #fdd;
}
div{
width: 400px;
height: 500px;
background-color: white;
margin: 150px auto;
border: 10px solid #dc4343;
border-radius: 100px;
text-align: center;
}
img{
margin-top: 10px;
width: 300px;
height: 300px;
}
h1{
margin: 20px auto;
width: 100px;
color: #dc4343;
border-bottom: 4px solid #dc4343;
}
ul{
width: 120px;
margin: 0 auto;
list-style: none;
}
a{
text-decoration: none;
color: inherit;
}
li{
color: #dc4343;
}
li:hover{
color: #943838;
}