Trending Designs

Impressed by our work?

Hire us for exceptional web development services on Fiverr

Simple Responsive Login Form Using Bootstrap 5 Only

Simple Responsive Login Form Using Bootstrap 5 Only
09 June
Learn how to create a Bootstrap 5 login form without writing custom CSS.

Simple Responsive Login Form Using Bootstrap 5 Only

Bootstrap 5 Login Form Without CSS

This Bootstrap 5 Login Form is built entirely using Bootstrap 5 classes without writing any custom CSS. The project demonstrates how to create a clean, professional, and responsive authentication form using Bootstrap’s built-in components and utility classes.

The design focuses on simplicity and efficiency, making it ideal for beginners who want to learn Bootstrap 5 quickly. By using Bootstrap's responsive grid system, form controls, spacing utilities, and buttons, you can create a modern sign-in form that works seamlessly across desktops, tablets, and mobile devices.


Steps to Create a Bootstrap 5 Login Form

Follow these simple steps to build a responsive login form without custom CSS:

  1. Create a project folder, for example, bootstrap-5-login-form.
  2. Inside the folder, create an index.html file.
  3. Add the Bootstrap 5 CDN link to your HTML document.
  4. Create the login form structure using Bootstrap 5 form components.
  5. Add labels, input fields, and a login button using Bootstrap classes.
  6. Use Bootstrap spacing and layout utilities to improve the form design.
  7. Apply responsive Bootstrap classes to ensure mobile-friendly layouts.
  8. Preview the form and test it on different screen sizes.
  9. Save the file and open it in a browser to view the final result.

                            
                                <!DOCTYPE html>
<!-- TheProviders ----------------- youtube.com/@TheProvidersOfficial -->
<html>
<head>
	<title>login form</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css" integrity="sha384-r4NyP46KrjDleawBgD5tp8Y7UzmLA05oM1iAEQ17CSuDqnUK2+k9luXQOfXJCJ4I" crossorigin="anonymous">
  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css">

</head>


<body class="bg-warning" >

<div class="container">
  <br><br>

  <div class="offset-md-3 col-md-6 mt-5 pl-3 bg-light rounded shadow-lg border border-dark">
    <h1 class="mt-2 pt-5 text-center font-italic text-warning">Login Form</h1>
    <form>
      
      <div class="input-group mt-5 mb-5 shadow-sm">
        <span class="input-group-text fa fa-user"></span>
      <input type="Email" class="form-control" placeholder="Username" required="">        
      </div>

            <div class="input-group mt-5 shadow-sm">
        <span class="input-group-text fa fa-lock "></span>
      <input type="Password" class="form-control" placeholder="Password" required="">        
      </div>
      <center>
        <button class="btn btn-info mt-5"><i class="fa fa-location-arrow"></i>&nbsp;&nbsp;Sumbit</button>
      </center>

<br><br><br>
    </form>
  </div>
  
</div>


</body>
</html>
                            
                        


Download Code Files


Share This Post :