adc

clicks

facebook login form code in html and css source code

 Facebook is always a major source of inspiration among all the web developers every one likes facebook whether it is there homepage design, wall design etc today we are also inspired from facebook.So, in this tutorial we will show you how to create facebook style homepage design using HTML and CSS.You may also like login with facebook using html and css

 

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 Form</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
    <div class="wrapper">
        <h1>Facebook</h1>
        <form>
            <label>
                <input type="text" name="" placeholder=" Email or Phone" required="">
            </label>

            <label>
                <input type="password" name="" placeholder="password"  required="">
            </label>

            <label> <br>
                <input type="submit" name="" value="Login">
            </label>
            <p><a href="#">Forgot Password</a></p>
        </form>
    </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{
    margin: 0;
    padding: 0;
    font-family: lato;
    background-color: #98999e;
}

.wrapper{
    background:radial-gradient(ellipse at center,rgba(82,112,173,1) 0%,rgba(53,84,147,1) 100%);
        border:1px solid #2d416d;
        box-shadow: 0 1px  #5670a4 inset, 0  0 10px 5px rgba(0,0,0,0.1);
        border-radius: 5px;
        width: 250px;
        height: 380px;
        margin: 60px auto;
        padding: 50px 30px 0 30px;
        text-align: center;

}

h1{
    margin: 0 0 50px 0;
    padding: 0;
    font-size: 30px;
    color: white;
}

input[type="text"], input[type="password"], input[type="submit"]{


    widows: 88%;
    border: 1px solid #314d89;
    outline: none;
    padding: 10px 15px;
    font-weight: 400;
    margin: 7px;
    border-radius: 5px;
    font-family: lato;

}

input[type="submit"]{
    width: 100%;
    color: black;
    margin-top: 150opx;
    cursor: pointer;

}

input[type="submit"]:hover{
    background-color: #ee6699;
    color: #fff;
}

p{
    margin-top: 40px;
}

p a{
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
}

p a:hover{
    text-decoration: underline;;
}

 

Watch Video

 

More Tutorials

 

facebook login form code in html and css source code facebook login form code in html and css source code Reviewed by easycoding on August 16, 2020 Rating: 5

No comments:

Powered by Blogger.