Login and Registration Form using Bootstrap

Login and Registration Form using Bootstrap

If you are looking for on how to create Login and Registration Form using Bootstrap then you are at the right place. We are going to create a simple and responsive login and registration form with the use of bootstrap. Let's start with:

Bootstrap Links

Copy and paste to your HEAD tag of your page.
  1. <meta charset="utf-8" />
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  3. <title>Log In and Registration Form Using Bootstrap</title>
  4. <!-- BOOTSTRAP STYLES-->
  5. <link href="assets/css/bootstrap.css" rel="stylesheet" />
  6. <!-- FONTAWESOME STYLES-->
  7. <link href="assets/css/font-awesome.css" rel="stylesheet" />
  8. <!-- CUSTOM STYLES-->
  9. <link href="assets/css/custom.css" rel="stylesheet" />
  10. <!-- GOOGLE FONTS-->
  11. <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
And, this script links, kindly copy and paste before the end of your BODY tag of your page.
  1. <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
  2. <!-- JQUERY SCRIPTS -->
  3. <script src="assets/js/jquery-1.10.2.js"></script>
  4. <!-- BOOTSTRAP SCRIPTS -->
  5. <script src="assets/js/bootstrap.min.js"></script>
  6. <!-- METISMENU SCRIPTS -->
  7. <script src="assets/js/jquery.metisMenu.js"></script>
  8. <!-- CUSTOM SCRIPTS -->
  9. <script src="assets/js/custom.js"></script>

HTML Form Source Code

This source code create a container for the input field. Copy and paste to your BODY tag of your page. This is the Login Form. Save it as "index.html".
  1. <div class="container">
  2. <div class="row text-center ">
  3. <div class="col-md-12">
  4. <br /><br />
  5. <h2>Admin Log In</h2>
  6.  
  7. <h5>( Enter correct details to get access )</h5>
  8. <br />
  9. </div>
  10. </div>
  11. <div class="row ">
  12.  
  13. <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
  14. <div class="panel panel-default">
  15. <div class="panel-heading">
  16. <strong style="color:blue;"> Enter Details To Login </strong>
  17. </div>
  18. <div class="panel-body">
  19. <form role="form">
  20. <br />
  21. <div class="form-group input-group">
  22. <span class="input-group-addon"><i class="fa fa-tag" ></i></span>
  23. <input type="text" class="form-control" name="user_name" placeholder="Enter your User Name. . . . ." autofocus="autofocus"/>
  24. </div>
  25. <div class="form-group input-group">
  26. <span class="input-group-addon"><i class="fa fa-lock" ></i></span>
  27. <input type="password" class="form-control" placeholder="Enter your Password. . . . ." />
  28. </div>
  29. <div class="form-group">
  30. <label class="checkbox-inline">
  31. <input type="checkbox" /> Remember me
  32. </label>
  33. <span class="pull-right">
  34. <a href="#" >Forget password ? </a>
  35. </span>
  36. </div>
  37.  
  38. <a href="index.html" class="btn btn-primary ">Login Now</a>
  39. <hr />
  40. Not register ? <a href="registration.html" >click here </a>
  41. </form>
  42. </div>
  43.  
  44. </div>
  45. </div>
  46.  
  47.  
  48. </div>
  49. </div>

This is the result:

ResultThis source code is for the registraion form field. Copy and paste to your BODY tag of your page. This is the Registraion Form. Save it as "registration.html".
  1. <div class="container">
  2. <div class="row text-center ">
  3. <div class="col-md-12">
  4. <br /><br />
  5. <h2>Admin Registration</h2>
  6.  
  7. <h5>( Enter your details to get access )</h5>
  8. <br />
  9. </div>
  10. </div>
  11. <div class="row">
  12.  
  13. <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1">
  14. <div class="panel panel-default">
  15. <div class="panel-heading">
  16. <strong style="color:blue;"> New User ? Enter your detail </strong>
  17. </div>
  18. <div class="panel-body">
  19. <form role="form">
  20. <br/>
  21. <div class="form-group input-group">
  22. <span class="input-group-addon"><i class="fa fa-circle-o-notch" ></i></span>
  23. <input type="text" class="form-control" placeholder="Enter your Name. . . . ." autofocus="autofocus"/>
  24. </div>
  25. <div class="form-group input-group">
  26. <span class="input-group-addon"><i class="fa fa-tag" ></i></span>
  27. <input type="text" class="form-control" placeholder="Enter your User Name. . . . ." />
  28. </div>
  29. <div class="form-group input-group">
  30. <span class="input-group-addon">@</span>
  31. <input type="text" class="form-control" placeholder="Enter your Email. . . . ." />
  32. </div>
  33. <div class="form-group input-group">
  34. <span class="input-group-addon"><i class="fa fa-lock" ></i></span>
  35. <input type="password" class="form-control" placeholder="Enter your Password. . . . ." />
  36. </div>
  37. <div class="form-group input-group">
  38. <span class="input-group-addon"><i class="fa fa-lock" ></i></span>
  39. <input type="password" class="form-control" placeholder="Re-type your password. . . . ." />
  40. </div>
  41.  
  42. <a href="index.html" class="btn btn-success ">Register Me</a>
  43. <hr />
  44. Already a User ? <a href="index.html" >Login here</a>
  45. </form>
  46. </div>
  47.  
  48. </div>
  49. </div>
  50.  
  51.  
  52. </div>
  53. </div>

This is the result:

Result So, that's it. You have the Login and Registration Form Using Bootstrap. For full source code kindly click the "Download Code" button. Share us your thoughts and comments below. Thank you so much for dropping by and reading this tutorial post. For more updates, don’t hesitate and feel free to visit this website more often and please share this with your friends or email me at [email protected]. Practice Coding. Thank you very much.

Add new comment