Cow to Create a simple and nice looking form using Html and Css

 <!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Simple Form</title>

    <style>

        body {

            font-family: Arial, sans-serif;

            background-color: #f4f4f4;

            display: flex;

            justify-content: center;

            align-items: center;

            height: 100vh;

            margin: 0;

        }

        .form-container {

            background: white;

            padding: 20px;

            border-radius: 8px;

            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

            width: 300px;

        }

        .form-container h2 {

            text-align: center;

            margin-bottom: 20px;

        }

        .form-group {

            margin-bottom: 15px;

        }

        .form-group label {

            display: block;

            margin-bottom: 5px;

        }

        .form-group input, .form-group textarea {

            width: 100%;

            padding: 8px;

            border: 1px solid #ccc;

            border-radius: 5px;

        }

        .form-group textarea {

            resize: vertical;

        }

        .submit-btn {

            width: 100%;

            padding: 10px;

            border: none;

            background: #28a745;

            color: white;

            font-size: 16px;

            border-radius: 5px;

            cursor: pointer;

            transition: background 0.3s;

        }

        .submit-btn:hover {

            background: #218838;

        }

    </style>

</head>

<body>

    <div class="form-container">

        <h2>Contact Us</h2>

        <form>

            <div class="form-group">

                <label for="name">Name</label>

                <input type="text" id="name" name="name" required>

            </div>

            <div class="form-group">

                <label for="email">Email</label>

                <input type="email" id="email" name="email" required>

            </div>

            <div class="form-group">

                <label for="password">Password</label>

                <input type="password" id="password" name="password" required>

            </div>

            <div class="form-group">

                <label for="message">Message</label>

                <textarea id="message" name="message" rows="4" required></textarea>

            </div>

            <button type="submit" class="submit-btn">Submit</button>

        </form>

    </div>

</body>

</html>


Comments

Popular posts from this blog

Technology and Digital Trends

Qwen AI: Alibaba’s Cutting-Edge Language Model

What Are AI Agents?