Design a Login page in bootstrap

<!DOCTYPE html>
<html>
<head>
  <title>Login Page</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  <style>
    .login-container {
      width: 300px;
      margin: 0 auto;
      margin-top: 100px;
    }
    .login-container h2 {
      text-align: center;
      margin-bottom: 30px;
    }
    .login-form input {
      margin-bottom: 20px;
    }
    .login-form button {
      width: 100%;
    }
  </style>
</head>
<body>
  <div class="container login-container">
    <h2>Login</h2>
    <form class="login-form">
      <div class="form-group">
        <label for="username">Username</label>
        <input type="text" class="form-control" id="username" placeholder="Enter your username">
      </div>
      <div class="form-group">
        <label for="password">Password</label>
        <input type="password" class="form-control" id="password" placeholder="Enter your password">
      </div>
      <button type="submit" class="btn btn-primary">Login</button>
    </form>
  </div>

  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>

Leave a Reply

Your email address will not be published. Required fields are marked *