কম্পিউটার টিউটোরিয়াল

HTML এবং CSS দিয়ে সাইন আপ ফর্ম তৈরি করার পদ্ধতি


উদাহরণ

নিচের কোডটি HTML এবং CSS ব্যবহার করে সাইন আপ ফর্ম তৈরি করার পদ্ধতি দেখায়:

<!DOCTYPE html>
<html>
<head>
<style>
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {box-sizing: border-box}
input[type=text], input[type=password] {
    width: 100%;
    font-size: 28px;
    padding: 15px;
    margin: 5px 0 22px 0;
    display: inline-block;
    border: none;
    background: #f1f1f1;
}
label {
    font-size: 15px;
}
input[type=text]:focus, input[type=password]:focus {
    background-color: #ddd;
    outline: none;
}
hr {
    border: 1px solid #f1f1f1;
    margin-bottom: 25px;
}
button {
    font-size: 18px;
    font-weight: bold;
    background-color: rgb(10, 119, 13);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    opacity: 0.9;
}
button:hover {
    opacity: 1;
}
.cancel {
    padding: 14px 20px;
    background-color: #ff3d2f;
}
.formContainer {
    padding: 16px;
}
.formContainer p {
    font-size: 28px;
}
</style>
</head>
<body>
<form>
<div class="formContainer">
<h1>Sign Up Form</h1>
<hr>
<label for="email"><b>Email</b></label>
<input type="text" placeholder="Enter Email" name="email" required>
<label for="password"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="password" required>
<label for="repeatPassword"><b>Repeat Password</b></label>
<input type="password" placeholder="Repeat Password" name="repeatPassword" required>
<label>
<input type="checkbox" checked="checked" name="remember" style="margin-bottom: 15px"> Remember me </label>
<p>By creating an account you agree to our <a href="#" style="color:dodgerblue">Terms & Privacy</a><p>
<div>
<button type="button" class="cancel">Cancel</button>
<button type="submit" class="signup">Sign Up</button>
</div>
</div>
</form>
</body>
</html>

আউটপুট

উপরোক্ত কোড নিচের আউটপুটটি তৈরি করবে:

HTML এবং CSS দিয়ে সাইন আপ ফর্ম তৈরি করার পদ্ধতি


  1. CSS দিয়ে রেসপন্সিভ ইনলাইন ফর্ম তৈরি করার পদ্ধতি

  2. CSS এবং জাভাস্ক্রিপ্ট দিয়ে ট্রি ভিউ (Tree View) তৈরি

  3. CSS ও JavaScript দিয়ে কোট স্লাইডশো (Quotes Slideshow) তৈরি করা

  4. CSS এবং JavaScript দিয়ে এক্সপ্যান্ডিং গ্রিড (Expanding Grid) তৈরি করা