.html

Pasted Oct 10, 2026, 7:07 AM1 file91 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgszrv4s94q0e9t
.html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>User Information Form</title>
    <style>
        /* 3. Heading style with background color and a unique font style */
        .form-heading {
            background-color: #4CAF50;
            color: white;
            font-family: "Georgia", serif;
            font-style: italic;
            padding: 12px;
            text-align: center;
            margin-top: 0;
        }

        /* Basic form layout styling */
        .form-container {
            width: 350px;
            margin: 30px auto;
            border: 1px solid #ccc;
            font-family: Arial, sans-serif;
        }
        .form-body {
            padding: 20px;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        input[type="text"], input[type="number"], input[type="email"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        
        /* Styling for the submit button */
        input[type="submit"] {
            background-color: #008CBA;
            color: white;
            padding: 10px 20px;
            border: none;
            cursor: pointer;
            width: 100%;
            font-size: 16px;
        }
        input[type="submit"]:hover {
            background-color: #007B9A;
        }
    </style>
</head>
<body>

    <div class="form-container">
        <!-- 3. Heading of the form -->
        <h2 class="form-heading">User Registration</h2>

        <!-- 1. Form to accept details from the user -->
        <form action="#" method="POST" class="form-body">
            
            <div class="form-group">
                <label for="username">Name:</label>
                <input type="text" id="username" name="username" required>
            </div>

            <div class="form-group">
                <label for="userage">Age:</label>
                <input type="number" id="userage" name="userage" min="1" required>
            </div>

            <div class="form-group">
                <label for="useremail">Email Address:</label>
                <input type="email" id="useremail" name="useremail" required>
            </div>

            <!-- 2. Submit button to send the data -->
            <input type="submit" value="Submit">
            
        </form>
    </div>

</body>
</html>

2,596 chars · codepastes.com