Sign Up page design Source Code Using HTML, CSS and Bootstrap

Share this

A well-designed sign-up page is crucial for user engagement on any website. It serves as the gateway for new users to join your platform. In this article, we will guide you through the process of creating a modern, responsive sign-up page using HTML, CSS, and Bootstrap.

Why Bootstrap?

Bootstrap is a popular front-end framework that simplifies the process of designing responsive and aesthetically pleasing web pages. It provides pre-designed components and a responsive grid system that makes web development faster and easier.

Structure of the Sign-Up Page

Our sign-up page will include the following elements:

  1. A simple and clean form layout.
  2. Fields for full name, email, password, and confirm password.
  3. A submit button for user registration.
  4. A link to redirect users to the login page if they already have an account.

HTML Code for the Sign-Up Page

The HTML structure of the sign-up page includes Bootstrap classes for styling and layout management:


<div class="container">
<div class="signup-container">
<h2 class="text-center mb-4">Sign Up</h2>
<form>
<div class="mb-3">
<label for="name" class="form-label">Full Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter your full name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter your email" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" id="password" placeholder="Enter your password" required>
</div>
<div class="mb-3">
<label for="confirm-password" class="form-label">Confirm Password</label>
<input type="password" class="form-control" id="confirm-password" placeholder="Confirm your password" required>
</div>
<button type="submit" class="btn btn-primary w-100">Sign Up</button>
</form>
<p class="text-center mt-3">Already have an account? <a href="#">Login</a></p>
</div>
</div>

CSS Styling for a Modern Look

We use simple CSS styling to enhance the appearance of the form:


.signup-container {
max-width: 400px;
margin: 50px auto;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

This CSS ensures that the form is centered, has a clean background, and includes a slight shadow for a modern effect.

Making It Responsive

Bootstrap’s grid system ensures that our form looks great on all screen sizes. The container class keeps the form responsive, while Bootstrap’s built-in form-control styles make sure input fields are adaptable to different devices.

Check Demo

Download Source Code

Share this

Leave a Comment