Registration Form
Create a Registration Form in HTML and CSS

:- A registration form is a list of fields that a user will input data into and submit to a company or individual. There are many reasons why you would want a person to fill out a registration form.
HTML Code :-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="8_august.css">
</head>
<body>
<div class="registration_box">
<img src="user.png">
<h1>Create an Account</h1>
<form action="index.html" method="GET">
<div class="form_block">
<label>First Name : </label>
<input type="text" name="" placeholder="Enter Your First Name">
<label>Last Name :</label>
<input type="text" name="" placeholder="Enter Your Last Name">
<label>Username : </label>
<input type="text" name="" placeholder="Enter Your Username">
<label>Email : </label>
<input type="email" name="" placeholder="Enter Your Email">
<label>Password :</label>
<input type="password" placeholder="Enter Your Password">
<label>Confirm Passwrod :</label>
<input type="password" placeholder="Confirm Password">
<input type="submit" name="" value="Register">
</div>
</form>
</div>
</body>
</html>
CSS Code :-
body{
padding: 0;
margin: 0;
font-size: 15px;
font-family: Arial, Helvetica, sans-serif;
background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)), url(5.jpg);
background-size: cover;
height: 100vh;
background-position: center;
overflow: hidden;
}
.registration_box{
height: 400px;
width: 450px;
background-color: #000;
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -70%);
opacity: 0.7;
color: #fff;
padding: 80px 30px;
border-radius: 20px;
}
.registration_box img{
width: 15%;
height: auto;
border-radius: 50%;
position: absolute;
top: -6%;
left: 42%;
}
.registration_box h1{
text-align: center;
text-transform: uppercase;
font-size: 20px;
}
.registration_box form label{
display: block;
margin-left: 10%;
padding-bottom: 7px;
font-size: 100%;
font-weight: bold;
}
.registration_box form input{
width: 80%;
margin-left: 10%;
margin-bottom: 15px;
font-size: 100%;
background-color: black;
color: white;
border:none;
border-bottom: 1px solid white;
}
.registration_box form input[type="submit"]{
background-color: #00b6e4;
border: 1px solid #00b6e4;
height: 40px;
border-radius: 20px;
color: white;
font-size: 20px;
font-weight: bold;
width: 81%;
text-transform: uppercase;
margin-top: 10px;
}
.registration_box form input[type="submit"]:hover{
background-color: #009ac0;
border: 1px solid #009ac0;
transition: background-color 0.2s, border 0.2s;
}
@media(max-width: 768px){
body{
overflow: hidden;
}
.registration_box{
width: 60%;
height: 60%;
}
}
Comments
Post a Comment