Create a simple HTML CSS Login form
Source codes:
<!DOCTYPE html>
<html>
<head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container{
display: flex;
flex-direction: column;
width: 300px;
padding: 15px;
border: 1px solid #2196F3;
border-radius: 5px;
background-color: #c6daeb;
}
input{
margin: 5px 0px;
height: 35px;
padding: 7px;
}
button{
height: 35px;
margin: 5px 0px;
background-color: #2196F3;
border: none;
border-radius: 5px;
color: white;
}
button:hover{
background-color: #333;
color: white;
}
</style>
</head>
<body>
<div class=”container”>
<input type=”email”
placeholder=”Email”>
<input type=”password”
placeholder=”Password”>
<button>Login</button>
</div>
</body>
</html>