Login form in HTML and CSS





























Hello Developers, We offer you a dynamic and visually appealing Login form in HTML that displays your information in an easy-to-understand way. This login form in html is designed with precision using HTML and CSS. The login form in HTML is a simple and user-friendly login form in HTML that combines HTML and CSS to provide a seamless authentication experience to your users. The login form includes an entry field for your username and password, as well as subtle placeholders to guide your users to login, as well as a login button. In addition to enhancing your user interface, this login form in HTML provides a secure gateway for easy access to your account. It is fully responsive, which means it can be displayed on any device, including desktops, laptops, tablets, and smartphones. So, using this HTML & CSS login form snippet not only shares information, but also demonstrates your commitment to professionalism & modern web design.

How to make Login form in HTML and CSS.[Source Code]

To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.

<!DOCTYPE html> <html> <head> <title>Form UI design - learningrobo</title> <meta name="description" content="Form Card UI design - learningrobo"> <meta name="author" content="learningrobo.com"> <meta name="keywords" content="form,responsive,learningrobo.com,html & css projects,project"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" type=image/x-icon href="#"> <link rel="stylesheet" href="style.css"> <meta charset="UTF-8"> <script src="https://kit.fontawesome.com/5d72166fb5.js" crossorigin="anonymous"></script> </head> <body> <!--Hello Future Developer Thanks for Using learningrobo.com, Share & Support us--> <div class="container"> <div class="from-box"> <img src="https://cdn.pixabay.com/photo/2017/11/10/04/47/image-2935360_1280.png" alt="#"> <div class="form-value"> <form action=""> <h2>Login</h2> <div class="inputbox"> <ion-icon name="person-circle-outline"></ion-icon> <input type="text" required placeholder=" "> <label for="#">Username</label> </div> <div class="inputbox"> <ion-icon name="lock-closed-outline"></ion-icon> <input type="password" required placeholder=" "> <label for="#">Password</label> </div> <div class="Remember"> <label for=""><input type="checkbox"> Remember Me </label> </div> <br> <button>Log in</button> <div class="Forgot"> <p><a href="#">Forgot Password ?</a></p> <div class="credit">Made with <span>❤ </span>by <a href="https://www.learningrobo.com/">learningrobo</a></div> </div> </form> </div> </div> <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script> <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script> </div> <!--Check our website Regularly For New Snippets Post--> </body> </html>
CSS provides style to an HTML page. To make the page attractive create a CSS file with the name style.css and remember that you have to make a file with a .css extension.


/** 
Hello Future Developer Thanks for Using learningrobo.com, 
Check our website Regularly For New Snippets Post.

Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
    box-sizing: border-box;
}
body{
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-image: url('https://cdn.pixabay.com/photo/2017/05/19/06/22/desk-2325627_1280.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}
.from-box{
    position: relative;
    width: 450px;
    height: 550px;
    display: flex;
    background:white; 
    justify-content: center;
    align-items: center;
    border-radius:20px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}
.from-box img{
    max-width: 50px;
    max-height: 50%;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid black; 
}
h2{
    font-size: 2em;
    color: black;
    text-align: center;
}
.inputbox{
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid black;
}
.inputbox label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: black;
    font-size: 1em;
    pointer-events: none;
}
input:focus ~label, input:not(:placeholder-shown)~label{
    top: -5px;
}
.inputbox input{
    width:100%;
    height: 50px;
    background: transparent;
    border: none;  
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: black;
}
.inputbox ion-icon{
    position: absolute;
    right: 8px;
    color: black;
    font-size: 1.2em;
    top: 20px;
}
.Remember{
    color: black;
}
button{
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: black;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: white;
}
.Forgot{
    font-size: 0.9em;
    color: black;
    text-align: center;
    margin: 25px 0 10px;
}
.Forgot p a{
    text-decoration: none;
    color: black;
    font-weight: 600 ;
}
.Forgot p a:hover{
    text-decoration: underline;
}
@media screen and (max-width:630px){
    .from-box{
        width:98%;
    }
}
.credit a{
    text-decoration: none;
    color: #121212;
    font-weight: 800;
}
.credit{
    color: #121212;
    text-align: center;
    margin-top: 10px;
    font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
    color:#000;
    font-size:20px;
}     
We hope you would like this Login form in HTML and CSS.

Thank you for reading our blog. If you face any problem in Creating a Login form in HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.

Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.

Thank you
Learning robo team

Post a Comment

Thank you
Learning robo team

Post a Comment (0)

Previous Post Next Post
Learning Robo says...
code copied
Welcome