DEV Community

Cover image for Day 1/100 β€” Build a Clean & Responsive Sign Up Page with Just HTML & CSS! 🎯 – No JavaScript Needed!!
Diya Vyas
Diya Vyas

Posted on

Day 1/100 β€” Build a Clean & Responsive Sign Up Page with Just HTML & CSS! 🎯 – No JavaScript Needed!!

Hey folks! πŸ‘‹

Welcome to Day 1 of my β€œ100 Days of UI” challenge β€” where I’ll be building one UI component every single day to sharpen my front-end and design skills πŸŽ¨πŸ’».

For the very first day, I decided to keep it simple yet practical:

πŸ“Œ A clean & responsive Volunteer Sign Up form β€” made entirely with HTML and CSS (no JavaScript, no frameworks, just raw frontend magic πŸͺ„).

β€”

🎯 What I Built:

A Sign Up page for a fictional volunteering platform β€” perfect for NGOs, student clubs, or any event where people need to register quickly and cleanly.

πŸ’‘ Features:

βœ… Minimalist & mobile-friendly layout
βœ… Full Name, Email, Phone Number, Password & Confirm Password fields
βœ… A dropdown for preferred volunteering area
βœ… Terms & Conditions checkbox
βœ… A bold CTA: β€œSign Up & Join the Cause”

πŸ“Έ Here’s a sneak peek:

(not an image person? scroll to the code ⬇️)

β€”

🧩 The Code (Pure HTML & CSS):

No libraries, no JavaScript β€” just the good ol' basics.

Code Preview:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Volunteer Sign Up</title>
  <style>
    * {
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    body {
      background: #f2f4f8;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
    }

    .signup-container {
      background: #fff;
      padding: 30px 40px;
      border-radius: 10px;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      width: 100%;
      max-width: 400px;

    }

    .signup-container h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #333;
    }

    .signup-container input, .signup-container select {
      width: 100%;
      padding: 12px;
      margin: 8px 0 15px 0;
      border: 1px solid #ccc;
      border-radius: 6px;
    }

    .signup-container label {
      font-size: 14px;
      color: #555;
    }

    .signup-container button {
      width: 100%;
      padding: 12px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      margin-top: 10px;
    }

    .signup-container button:hover {
      background-color: #45a049;
    }

    .signup-container .footer-text {
      text-align: center;
      margin-top: 15px;
      font-size: 14px;
    }

    .signup-container .footer-text a {
      color: #4CAF50;
      text-decoration: none;
    }

    .signup-container .footer-text a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>

<div class="signup-container">
  <h2>Volunteer Sign Up</h2>
  <form>
    <label for="name">Full Name</label>
    <input type="text" id="name" name="name" required>

    <label for="email">Email Address</label>
    <input type="email" id="email" name="email" required>

    <label for="phone">Phone Number</label>
    <input type="tel" id="phone" name="phone" required>

    <label for="password">Password</label>
    <input type="password" id="password" name="password" required>

    <label for="confirm">Confirm Password</label>
    <input type="password" id="confirm" name="confirm" required>

    <label for="interest">Volunteering Area</label>
    <select id="interest" name="interest" required>
      <option value="">-- Select --</option>
      <option value="environment">Environment</option>
      <option value="education">Education</option>
      <option value="healthcare">Healthcare</option>
      <option value="animals">Animal Welfare</option>
    </select>

    <label>
      <input type="checkbox" required> I agree to the Terms and Conditions
    </label>

    <button type="submit">Sign Up & Join the Cause</button>
  </form>

  <div class="footer-text">
    Already have an account? <a href="#">Login</a>
  </div>
</div>

</body>
</html>
Enter fullscreen mode Exit fullscreen mode

πŸ“± It’s Responsive Too!

This layout adjusts cleanly across screen sizes. I’ve kept the structure flexible so you can easily plug this into any page or modal.
β€”

πŸš€ What’s Next?

This is just Day 1 β€” so much more to come:
~ Modals
~ Dashboards
~ Cards
~ Components in React
~ Animations with Framer Motion
...and more!

If you’re also doing a UI challenge or want to learn along with me β€” follow along, drop a like, or share ideas! πŸ™Œ

Let’s build, one day at a time. πŸ’ͺ

See you on Day 2! πŸš€

Top comments (0)