login form with background image in html. code example
Example: login form with background image in html
<div class="bg-img">
<form action="/login" class="container" method="post" >
<h1>Login</h1>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit" class="btn">Login</button>
</form>
</div>
<style>
.bg-img {
background-image: url("img_nature.jpg");
min-height: 380px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
</style>