How to Create HTML5 CSS3 Login Form Template with Source Code

In this tutorial i will explain how to create best CSS3 HTML5 login template for your website. or login page design in html and css with source code or also explain how to create your own Login template using css and html as well as design simple login form with html and css with source code or also explain how to create login form in html using css step by step.

For Create best CSS3 HTML5 Login Page Template You need to follow few step.

Step 1: Open Your Text Editor like Notepad, Notepad++, word etc.
Step 2: Write Your HTML and CSS Code in Text Editor.
Step 3: Save Your File with .htm or .html extenson.
             i.e : index.html
Step 4: Run Your HTML File.
Step 5: Enjoy.
Now Let's take one example of Login Page Template so You can Understand weary well.

Now i will open my text editor(Notepad) and write html script for login page.
<html>
<head>
    <meta charset="utf-8">
    <title>Login Page Template in html and css</title>
    <style type="text/css">
        body {
            background-color:#FFFFFF;
            color#5a5656;
            font-family'Open Sans'ArialHelveticasans-serif;
            font-size16px;
            line-height1.5em;
        }
 
        a {
            text-decorationnone;
        }
 
        h1 {
            font-size2em;
        }
 
        h1p {
            margin-bottom10px;
        }
 
        strong {
            font-weightbold;
        }
 
        .uppercase {
            text-transformuppercase;
        }
 
        /* ---------- LOGIN ---------- */
        #login {
            margin50px auto;
            width300px;
        }
 
        form fieldset input[type="text"]input[type="password"] {
            background-color#e5e5e5;
            bordernone;
            border-radius3px;
            -moz-border-radius3px;
            -webkit-border-radius3px;
            color#5a5656;
            font-family'Open Sans'ArialHelveticasans-serif;
            font-size14px;
            height50px;
            outlinenone;
            padding0px 10px;
            width280px;
            -webkit-appearancenone;
        }
 
        form fieldset input[type="submit"] {
            background-colorgreen;
            bordernone;
            border-radius3px;
            -moz-border-radius3px;
            -webkit-border-radius3px;
            color#f4f4f4;
            cursorpointer;
            font-family'Open Sans'ArialHelveticasans-serif;
            height50px;
            text-transformuppercase;
            width300px;
            -webkit-appearancenone;
        }
 
        form fieldset a {
            color#5a5656;
            font-size10px;
        }
 
            form fieldset a:hover {
                text-decorationunderline;
            }
 
        .btn-round {
            background-color#5a5656;
            border-radius50%;
            -moz-border-radius50%;
            -webkit-border-radius50%;
            color#f4f4f4;
            displayblock;
            font-size12px;
            height50px;
            line-height50px;
            margin30px 125px;
            text-aligncenter;
            text-transformuppercase;
            width50px;
        }
 
        .facebook-before {
            background-color#0064ab;
            border-radius3px 0px 0px 3px;
            -moz-border-radius3px 0px 0px 3px;
            -webkit-border-radius3px 0px 0px 3px;
            color#f4f4f4;
            displayblock;
            floatleft;
            height50px;
            line-height50px;
            text-aligncenter;
            width50px;
        }
 
        .facebook {
            background-color#0079ce;
            bordernone;
            border-radius0px 3px 3px 0px;
            -moz-border-radius0px 3px 3px 0px;
            -webkit-border-radius0px 3px 3px 0px;
            color#f4f4f4;
            cursorpointer;
            height50px;
            text-transformuppercase;
            width250px;
        }
 
        .twitter-before {
            background-color#189bcb;
            border-radius3px 0px 0px 3px;
            -moz-border-radius3px 0px 0px 3px;
            -webkit-border-radius3px 0px 0px 3px;
            color#f4f4f4;
            displayblock;
            floatleft;
            height50px;
            line-height50px;
            text-aligncenter;
            width50px;
        }
 
        .twitter {
            background-color#1bb2e9;
            bordernone;
            border-radius0px 3px 3px 0px;
            -moz-border-radius0px 3px 3px 0px;
            -webkit-border-radius0px 3px 3px 0px;
            color#f4f4f4;
            cursorpointer;
            height50px;
            text-transformuppercase;
            width250px;
        }
    </style>
</head>
<body>
    <div id="login">
        <center>
            <h1><strong>Login</strong></h1>
        </center>
        <form action="javascript:void(0);" method="get">
            <fieldset>
                <p><input type="text" required value="Username" onblur="if(this.value=='')this.value='Username'" onfocus="if(this.value=='Username')this.value='' "></p>
                <p><input type="password" required value="Password" onblur="if(this.value=='')this.value='Password'" onfocus="if(this.value=='Password')this.value='' "></p>
                <p><a href="#">Forgot Password?</a></p>
                <p><input type="submit" value="Login"></p>
                <br />
                <center>
                    <p>Design by Nikunj Satasiya</p>
                </center>
            </fieldset>
        </form>
        <p><span class="btn-round">or</span></p>
        <p>
            <a class="facebook-before"></a>
            <button class="facebook">Login With Facebook</button>
        </p>
        <p>
            <a class="twitter-before"></a>
            <button class="twitter">Login With Twitter</button>
        </p>
    </div> <!-- end login -->
</body>
 
</html>
Now  i will save my file with name index.html

NOTE: File extenson must be .html or either .htm

After Save my file i will run my html file in browser.

Demo:
Create HTML5 CSS3 Login Form Temperate with Source Code



Previous
Next Post »

If you have any kind of question about any post, Feel free to ask.You can simply drop a comment below post. Your feedback and suggestions will be highly appreciated. ConversionConversion EmoticonEmoticon