Toggle navigation
☰
HTML
CSS
Scripting
Database
<!DOCTYPE html> <html> <head> <title>Sign Up Form Example</title> <style> body { font-family: sans-serif; background-color: #f7f9fc; margin: 0; display: flex; justify-content: center; align-items: center; height: 500px; /* Adjusted for scratchpad preview */ } .signup-card { background-color: white; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); width: 350px; } .signup-card h2 { margin-top: 0; margin-bottom: 25px; text-align: center; color: #2c3e50; } .form-group { margin-bottom: 15px; } .signup-card label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: bold; color: #34495e; } .signup-card input[type="text"], .signup-card input[type="email"], .signup-card input[type="password"] { width: 100%; padding: 10px; border: 1px solid #dcdde1; border-radius: 5px; box-sizing: border-box; } .checkbox-group { display: flex; align-items: center; margin-bottom: 20px; } .checkbox-group input { margin-right: 10px; } .checkbox-group label { margin-bottom: 0; font-weight: normal; } .signup-button { width: 100%; padding: 12px; background-color: #2ecc71; color: white; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 16px; transition: background-color 0.2s; } .signup-button:hover { background-color: #27ae60; } .login-link { margin-top: 20px; text-align: center; font-size: 14px; } </style> </head> <body> <div class="signup-card"> <h2>Create Account</h2> <form action="/signup-process" method="post"> <div class="form-group"> <label for="full-name">Full Name</label> <input type="text" id="full-name" name="full-name" placeholder="John Doe" required autocomplete="name"> </div> <div class="form-group"> <label for="email">Email Address</label> <input type="email" id="email" name="email" placeholder="name@example.com" required autocomplete="email"> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" id="password" name="password" minlength="8" required autocomplete="new-password"> </div> <div class="checkbox-group"> <input type="checkbox" id="terms" name="terms" required> <label for="terms">I agree to the <a href="#">Terms of Service</a></label> </div> <button type="submit" class="signup-button">Sign Up</button> </form> <div class="login-link"> Already have an account? <a href="#">Log in</a> </div> </div> </body> </html>