Bootstrap snippet and html example. Login

This html snippet was created to help web designers, web developers, front-end and back-end developer save time. Use it for free in your project and build your app faster, You can also download the HTML, CSS, and JS code.

HTML code

This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 3.0.1 included, to get the result that you can see in the preview selection

<html>
    <head>
        <title>LogIn</title>
        
    <link rel='stylesheet' href='styles/estilos.css'>
    <link rel="icon" type="image/x-icon" href="img/bdroid.png">
	</head>
    <body>
		
        <form class='contacto'  action="ingresar.php"method="get">
		<p><h1>Ingresa Correctamente Tus Datos!</h1></p>
            <div><label>Email</label><input type='email' value='' name="email" placeholder='Tú Email@' required></div>
            <div><label>Password</label><input type='password' value='' name="clave" placeholder='Tú Password' required></div>
            
            <div><input type='submit' value='Entrar'>
			<!--
			<hr><p><a href="register.php" target="_blank"><img src="img/registrarme.PNG"><br><br>Registrarme</a>
			<hr><p><a href="inicio.php" target="_blank"><img src="img/cancelar.PNG"><br><br>Cancelar</a>
			-->
		
			<hr>	
			<br>
			<p><h1>Deseo Registrarme!</h1></p>
			<input type='button'
			value='Registrarme'
			onClick='location.href= "<?php echo "register.php"?>" ' />
			<br>
			<hr>
			<br>
			<p><h1>Cancelar Solicitud!</h1></p>
			<input type='button'
			value='Cancelar'
			onClick='location.href= "<?php echo "inicio.php"?>" ' />
			<hr>
			</div>
		</form>
    </body>
</html>

CSS code

This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 3.0.1 included, to get the result that you can see in the preview selection

*{
    font-family: sans-serif;
    font-size: 12px;
    color: #000000;
}
body{
    width: 400px;
    
    margin: auto;
    background-color: #0066CC;
}
.contacto{
    border: 1px solid #0066CC;
    border-radius: 6px;
    padding: 45px 45px 20px;
    margin-top: 50px;
    background-color: white;
    box-shadow: 0px 5px 10px #CCCCCC, 0 0 0 10px #EEF5F7 inset;
}
.contacto label{
    display: block;
    font-weight: bold;
}
.contacto div{
    margin-bottom: 15px;
}
/* start Input text */
.contacto input[type='text'], .contacto textarea{
    padding: 7px 6px;
    width: 294px;
    border: 1px solid #0066CC;
    resize: none;
    box-shadow:0 0 0 3px #EEF5F7;
    margin: 5px 0;
}
.contacto input[type='text']:focus, .contacto textarea:focus{
    outline: none;
    box-shadow:0 0 0 3px #000000;
}

/* end Text*/

/* start password */

.contacto input[type='password'], .contacto password{
    padding: 7px 6px;
    width: 294px;
    border: 1px solid #0066CC;
    resize: none;
    box-shadow:0 0 0 3px #EEF5F7;
    margin: 5px 0;
}
.contacto input[type='password']:focus, .contacto password:focus{
    outline: none;
    box-shadow:0 0 0 3px #000000;
}
/* end password */

/* start email*/
.contacto input[type='email'], .contacto email{
    padding: 7px 6px;
    width: 294px;
    border: 1px solid #0066CC;
    resize: none;
    box-shadow:0 0 0 3px #EEF5F7;
    margin: 5px 0;
}
.contacto input[type='email']:focus, .contacto email:focus{
    outline: none;
    box-shadow:0 0 0 3px #000000;
}

/*  button */
.contacto input[type='button']{
    border: 1px solid #0066CC;
    box-shadow:0 0 0 3px #EEF5F7;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 0px white;
	width: 150px;
    background: #0066CC;
    background: -moz-linear-gradient(top, #e4f1f6 0%, #cfe6ef 100%);
    background: -webkit-linear-gradient(top, #e4f1f6 0%,#cfe6ef 100%);
}
.contacto input[type='button']:hover{
    background: #edfcff;
    background: -moz-linear-gradient(top, #edfcff 0%, #cfe6ef 100%);
    background: -webkit-linear-gradient(top, #edfcff 0%,#cfe6ef 100%);
}
.contacto input[type='button']:active{
    background: #cfe6ef;
    background: -moz-linear-gradient(top, #cfe6ef 0%, #edfcff 100%);
    background: -webkit-linear-gradient(top, #cfe6ef 0%,#edfcff 100%);
}





.contacto input[type='submit']{
	
    border: 1px solid #0066CC;
    box-shadow:0 0 0 3px #EEF5F7;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 0px white;
	width: 150px;
    background: #0066CC;
    background: -moz-linear-gradient(top, #e4f1f6 0%, #cfe6ef 100%);
    background: -webkit-linear-gradient(top, #e4f1f6 0%,#cfe6ef 100%);
}
.contacto input[type='submit']:hover{
    background: #edfcff;
    background: -moz-linear-gradient(top, #edfcff 0%, #cfe6ef 100%);
    background: -webkit-linear-gradient(top, #edfcff 0%,#cfe6ef 100%);
}
.contacto input[type='submit']:active{
    background: #cfe6ef;
    background: -moz-linear-gradient(top, #cfe6ef 0%, #edfcff 100%);
    background: -webkit-linear-gradient(top, #cfe6ef 0%,#edfcff 100%);
}

Similar snippets

Bootstrap example and template. Social Network timeline feed

Social Network timeline feed

Bootstrap example and template. bs4 account tickets

bs4 account tickets

Bootstrap example and template. social network wall

social network wall

Bootstrap example and template. User list

User list

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. bs5 edit profile account details

bs5 edit profile account details

Bootstrap example and template. account settings

account settings

Bootstrap example and template. social network profile info

social network profile info

Bootstrap example and template. Login

About this bootstrap example/template

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This code example currectly have 832 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 3.0.1

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.0.1 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working