위와 같은 화면을 만들어보자.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>1주차 실습 간단한 로그인 화면</title>
<style>
.mytitle {
display: block;
width: 300px;
height: 200px;
text-align: center;
color: white;
background-image: url("https://www.ancient-origins.net/sites/default/files/field/image/Agesilaus-II-cover.jpg");
background-size: cover;
background-positoin: center;
border-radius: 10px;
padding-top: 40px;
}
.wrap{
width: 300px;
margin: auto;
}
.loginbtn{
border-radius: 10px;
border: 1px solid black;
}
</style>
</head>
<body>
<div class="wrap">
<div class="mytitle">
<h1> 로그인 화면 </h1>
<h5>아이디, 비밀번호를 입력해주세요</h5>
</div>
<p>ID: <input type="text"></input></p>
<p>PW: <input type="text"></input></p>
<button type="button" class="loginbtn">로그인하기</button>
</div>
</body>
</html>
외우지 말고, 코딩을 하면서 어떤 요소가 어떤 기능을 하는지 하나하나 살피자.