adc

clicks

facebook login form code in html and css || HTML AND CSS

 Facebook is the most popular social networking website in the world. Every developer wants to know about how to design a Facebook custom home page and login page using Html and CSS. So, in this blog post, I will share the Facebook login page HTML code and HTML code for the Facebook home page.

 

HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

 <!DOCTYPE html>
<html>
<head>
    <title>Facebook Login From</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <form class="box">
        <img src="facebook.png">

        <input class="form" type="mail" name="" placeholder="Email or Phone">
        <input class="form" type="password" name="" placeholder="Password">
        <input class="login" type="submit" name="" value="Log In">
    </form>

    <div>
        <li><a href="#">Sing Up With Facebook</a></li>
        <li><a href="#">Forgot Password</a></li>
    </div>

</body>
</html>

CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

body{
    padding: 0;
    margin: 0;
    font-family: sans-serif;
    background-color: #74b741;
}

.box{
    width: 290px;
    height: 500px;
    background:#3b5998;
    float: left;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

img{
    width: 28%;
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}


.form, .login{
    width: 80%;
    float: left;
    border-style: none;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
    outline: none;
    color: white;

}
.form:focus, .login:focus{
    width: 90%;
    transition: 0.25s;
}

.box input[type="mail"], .box input[type="password"]{
    border-bottom: 1px solid white;
    background:white;
    background:none;
    font-size: 1em;
    text-decoration: none;
    padding: 7px 0;
}

.login{
    padding: 6px 0;
    margin-top: 10px;
    width: 80%;
    font-size: 0.9em;
    color: white;
    background:#7782ff;
}
.login:hover{
    background-color: #414eed;
    cursor: pointer;
    transition: 0.5s ease;
}


div{
    top: 70%;
    left: 50%;
    float: left;
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

div li{
    list-style: none;
    padding-top: 10px;
    align-items: center;
    text-align: center;
}

div li a{
    font-size: 1em;
    text-decoration: none;
    color: white;
}

 

Image Dwonload 


 

 Youtube Videos

 

 

Youtube Channel 

facebook login form code in html and css || HTML AND CSS facebook login form code in html  and css || HTML AND CSS Reviewed by easycoding on August 11, 2020 Rating: 5

1 comment:

  1. Can you give me the code sir/maam? Thanks my facebook was hacked

    ReplyDelete

Powered by Blogger.