A well-designed registration form is essential for any website, providing users with a smooth sign-up experience. HTML and CSS make it simple to create an effective and visually appealing form. Our guide offers source code and tips to create a unique registration form, tailored to your needs.
This is a simple registration page in HTML and CSS. Login Page Design Using HTML CSS.
Html CSS Using Registration Page Design
Download now here a background image file
HTML CODE
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Register Page</title>
</head>
<body>
<section class="sign_up">
<div class="container">
<h1>Register</h1>
<p id="create">Create your account. It's free and only takes a minute</p>
<div class="name">
<input type="text" placeholder="First Name" required>
<input type="text" placeholder="Last Name" required>
</div>
<div class="details">
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Passowrd" required>
<input type="password" placeholder="Confirm Password" required>
</div>
<div class="checkbox">
<input type="checkbox" class="check" required>
<p class="check">I accept the<span class="term"><a href="#">Terms of use</a></span> & <span><a id="privacy" href="#">Privacy Policy</a></span></p>
</div>
<a href="" id="register_btn">Register Now</a>
</div>
<div class="signIn">
<p>Already have an account?<span><a href="#">Sign in</a></span></p>
</div>
</section>
</body>
</html>
CSS style:
*{
padding: 0;
margin: 0;
font-family: sans-serif;
}
.sign_up{
height: 100vh;
background: url(img/background.jpg);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
.container{
background-color: white;
width: 380px;
height: 400px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1{
color: black;
font-size: 30px;
}
h1::before{
content: "";
display: block;
width: 100px;
height: 3px;
background: black;
left: 540px;
top: 29%;
position: absolute;
}
h1::after{
content: "";
display: block;
width: 100px;
height: 3px;
background: black;
right: 540px;
top: 29%;
position: absolute;
}
#create{
font-size: 12px;
}
input{
padding: 6px;
margin-top: 10px;
margin-left: 10px;
}
.details input{
width: 335px;
}
.details{
display: flex;
flex-direction: column;
}
.check{
display: inline-block;
}
#register_btn{
text-decoration: none;
padding: 10px 120px;
border: 1px solid green;
background: green;
color: white;
border-radius: 8px;
margin-top: 20px;
}
#register_btn:hover{
background: transparent;
color: black;
border: 1px solid black;
transition: .5s;
}
.term a{
color: green;
}
#privacy{
color: green;
}
.signIn{
display: block;
color: black;
position: absolute;
top: 81%;
}
.checkbox{
width: 355px;
margin-top: 10px;
}
.signIn p span a{
color: black;
margin-left: 6px;
}
- Boost WooCommerce Security: Set Up OTP Login in WordPressPasswords, while essential for security, can be vulnerable to hacking and breaches. To add an extra layer of protection for your WooCommerce store, consider implementing …
- How to Create Woocommerce Flutter App for WordPress freeAbsolutely! Let’s break down how to create a WooCommerce Flutter app for your WordPress store. Here’s a comprehensive outline of the process and essential considerations: …
- How to Add a Link to Your Facebook Story in 2024Facebook Stories have become an integral part of our social media experience, allowing us to share moments and updates with our friends and followers. But …
- Troubleshooting “Failed to download Laravel from dist” ErrorIf you encounter the “Failed to download Laravel from dist” error while working with Laravel 10, it is likely due to the absence of the …
- Solutions for “The file is too large for the destination file system” Error on PendriveIf you have ever encountered the frustrating error message “The file is too large for the destination file system” when trying to transfer files to …
Conclusion
In summary, designing a registration form with HTML and CSS is a straightforward process. By utilizing the provided source code and customizing it to suit your preferences, you can create an engaging and user-friendly form that enhances your website’s overall experience.