Created
August 3, 2023 13:55
-
-
Save saharshg29/ea098b2216d56c6a297e95d3164cbdb9 to your computer and use it in GitHub Desktop.
LogIn HTML CSS Bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Login Page</title> | |
<style> | |
.container { | |
width: 400px; | |
margin: 0 auto; | |
} | |
.form-group { | |
margin-bottom: 10px; | |
} | |
.btn { | |
width: 100%; | |
} | |
</style> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-4"> | |
<h1>Login</h1> | |
<form action="login.php" method="post"> | |
<div class="form-group"> | |
<label for="username">Username</label> | |
<input type="text" class="form-control" id="username" placeholder="Username"> | |
</div> | |
<div class="form-group"> | |
<label for="password">Password</label> | |
<input type="password" class="form-control" id="password" placeholder="Password"> | |
</div> | |
<button type="submit" class="btn btn-primary">Login</button> | |
<a href="forgot-password.php" class="forgot-password">Forgot Password?</a> | |
</form> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment