Skip to main content

Creating a Login Form Using Bootstrap and HTML - Front End

Login Form UI


Introduction:

In this post, you will get an idea how to create a Login User Interface with the help of a popular Front End Web Framework named Bootstrap.

Steps:

  1. Open up a text editor and save the file with extension '.html'.


  2. Type it out with the basic HTML code.


  3. Add Bootstrap CDN between the opening and close <head> tags. You can get the Bootstrap from the Bootstrap website here. It will be somewhat like the snippet below.
  4. Now add some custom styles just before the closing head tag. We are using -webkit-linear-gradient for chrome only, you can add -moz-linear-gradient and include the same color parameters to it.
  5. Let's come to <body> tag and edit it.  First creating a card using bootstrap class called 'card'. Go to Bootstrap's website documentation for further details. Then refer to the code as follows:
  6. We are done and the final code will be look like this:

Conclusion:

We have created the design part only, soon we shall cover the back-end part of this form using some back-end servers.

Comments