Cool Login Form in HTML CSS & JavaScript

Hello readers, Today in this blog you'll learn how to create a Cool Login Form with Password Show or Hide Option in HTML CSS & JavaScript. Earlier I have shared a Neumorphism Login Login Form but there is no password show hide option. Now, it's a time to create Login Form with password show or hide Button.

A Login form is used to enter the authentication credentials of the user to access a restricted page or form. The login form includes a field for the username and another for the password.

This Login Form is created only for design purposes. There is no action when you submitted form after entered credential details (Email & password). There is no backend integration because I used only HTML & CSS to create this form. So there is no backend role in this form.

If you're feeling difficult to understand what I am saying. You can watch a full video tutorial on this program (Cool Login Form).

Video Tutorial of Cool Login Form  in HTML & CSS



If you like this program (Cool Login Form) and want to get source codes. You can easily get the source codes of this program. To get the source codes you just need to scroll down.

You can use this form in your websites, projects, and anywhere you want. If you're a beginner and this video helped you to understand the codes behind creating a login form, then don't forget to share it with your friends. You can also create this type of login form if you have basic knowledge of HTML & CSS.

You might like this:


Login Form Design in HTML & CSS [Source Codes]

As always, before sharing the codes this program (Cool Login Form). Let's a few talk about the main tags and codes of this program. In the HTML File, First I created a <div> with the class name "center" and placed all other elements inside it. Then I created a <form> tag. Then I created two tags inside it (<input> tag and <i> tag). Inside <i> tag I used font awesome class name for icon. After that, I paste these two tags <input> and <i> tag two times to creating the password field and lock icon. At last, I created last <input> type submit tag.

In the CSS File, First I removed default margins and padding of the body. Then I created a radial gradient background in the body. The radial-gradient() CSS function generates an image consisting of a continuous transition between two or more colors that reflect from an origin. Its shape may be a circle or an oval. Then I did essential styling to the login form, input field, icons, and the button.

In the JavaScript File, First I call required tags using CSS selector. Then I create a click function and inside this function, I have written if-else condition. Inside this condition, I have written if the user clicks on that button and the password formate is the default (bullet) then change this formate to text formate otherwise don't do anything.

To create this program (Cool Login Form). First, you need to create two Files one HTML File and another one is CSS File. After creating these files just paste these following codes in your file.

You can also download the source code files through the given link. Click here to download source code files.

HTML FILE:

CSS FILE:


Thanks for visiting, Keep visiting.


7 Comments

We welcome relevant and respectful comments. Off-topic or spam comments may be removed.

Post a Comment

We welcome relevant and respectful comments. Off-topic or spam comments may be removed.

Previous Post Next Post
CodingNepal
Subscribe our YouTube Channel