UNIQUE INSTITUTE OF COMPUTER TECHNOLOGY

HTML Complate Course English and Hindi Step by Step Basic To Advance Part 05

HTML Step-by-Step Guide

1️⃣ CSS लेआउट क्या होता है?

2️⃣ Flexbox के साथ फॉर्म को और आकर्षक बनाएं

📌 पहले का फॉर्म सिंपल था, अब इसे सही से अलाइन करेंगे।

<!DOCTYPE html>
<html>
<head>
    <title>Flexbox फॉर्म</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        form {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0px 0px 10px gray;
            width: 350px;
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: bold;
            margin-bottom: 5px;
        }

        input[type="text"], 
        input[type="email"], 
        input[type="password"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        input[type="submit"] {
            background-color: #007bff;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            font-size: 16px;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>

    <div class="container">
        <form>
            <label>नाम:</label>
            <input type="text" name="name" placeholder="अपना नाम दर्ज करें">

            <label>ईमेल:</label>
            <input type="email" name="email" placeholder="अपना ईमेल दर्ज करें">

            <label>पासवर्ड:</label>
            <input type="password" name="password" placeholder="अपना पासवर्ड दर्ज करें">

            <input type="submit" value="सबमिट करें">
        </form>
    </div>

</body>
</html>

HTML Step-by-Step Guide

3️⃣ Flexbox का फायदा क्या हुआ?

4️⃣ अगला स्टेप: CSS Grid सीखना!