How to create Login form using html and css

Hello friends, today we will be going to how do we create Login Form Using Html and CSS. I have posted many videos and articles before related to the JavaScript project, now this the something new that we are going to build.

Video Tutorial of How to create Login Form Using Html and CSS


As you have seen on the given video tutorial of  How to create Login Form Using Html and CSS, 

If you are feeling bored watching the given video tutorial of How to create Login Form Using Html and CSS then you can copy or download the given codes below:


How to create Login Form Using Html and CSS | Free Source Code

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

In the first place, make a HTML document with the name of index.html and glue the given codes in your HTML record. Keep in mind, you've to make a document with .html extension.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="style.css">
    <title>Login Form</title>
</head>
<body>
    <div class="login-form">
        <h2>Login</h2>
        <form action="#" method="post">
            <div class="inputBox">
                <input type="email" name="email" placeholder="Enter Your Email">
            </div>
            <div class="inputBox">
                <input type="password" name="password" placeholder="Enter Your Password">
            </div>
            <input type="submit" value="Login" class="btn">
        </form>
    </div>
</body>
</html>
Second, make a CSS record with the name of style.css and glue the given codes in your CSS document. Keep in mind, you've to make a record with .css extension.
*
{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}
body
{
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1b1b1b;
    min-height: 100vh;
}
.login-form
{
    width: 400px;
    padding: 40px;
    background: #1b1b1b;
    box-shadow: 5px 15px 45px rgba(0,0,0,0.6);
    border-radius: 10px;
}
.login-form h2
{
    color: #fff;
    margin: 0 0 35px 0;
    text-align: center;
    text-transform: uppercase;
}
form .inputBox
{
    margin-bottom: 20px;
    background: linear-gradient(#1e2024,#131313);
    border: 2px solid #131313;
    padding: 10px 15px;
}
form .inputBox input
{
    width: 350px;
    outline: none;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #fff;
}
form .btn
{
    background: linear-gradient(#1e2024,#131313);
    border: 2px solid #131313;
    border-radius: 4px;
    padding: 10px 20px;
    color: #999;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}
form .btn:hover
{
    background: #1e2024;
}
That’s all, now you’ve successfully created a program to How to create Login Form Using Html and CSS. If your code doesn’t work or you’ve faced any error/problem, please download the source code files from the given download button. It’s free and a .zip file will be downloaded then you’ve to extract it.
Click on the following download button to download all source code files.


Download Now
Please Wait...
Direct Link click here.

How can I help you

Post a Comment

How can I help you

Post a Comment (0)

Previous Post Next Post