Bootstrap Change Password Example – Askavy

0
8

Views: 19

Code Example

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Bootstrap 5 Form Example</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body 
            background: #f7f7f7;
        

        .form-box 
            max-width: 500px;
            margin: auto;
            padding: 50px;
            background: #ffffff;
            border: 10px solid #f2f2f2;
        
    </style>
</head>
<body>
    <div class="container py-3">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card card-outline-secondary">
                    <div class="card-header">
                        <h3 class="mb-0">Change Password</h3>
                    </div>
                    <div class="card-body">
                        <form autocomplete="off" class="form" role="form">
                            <div class="form-group">
                                <label for="inputPasswordOld">Current Password</label>
                                <input class="form-control" id="inputPasswordOld" required="" type="password">
                            </div>
                            <div class="form-group">
                                <label for="inputPasswordNew">New Password</label>
                                <input class="form-control" id="inputPasswordNew" required="" type="password">
                                <small class="form-text text-muted" id="passwordHelpBlock">Your password must be
                                    8-20 characters long, contain letters and numbers, and must not contain
                                    spaces, special characters, or emoji.</small>
                            </div>
                            <div class="form-group">
                                <label for="inputPasswordNewVerify">Verify</label>
                                <input class="form-control" id="inputPasswordNewVerify" required="" type="password">
                                <span class="form-text small text-muted">To confirm, type the new password
                                    again.</span>
                            </div>
                            <div class="form-group">
                                <button class="btn btn-success btn-lg float-right" type="submit">Save</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

Let us know if you liked the post. That’s the only way we can improve.

Source

LEAVE A REPLY

Please enter your comment!
Please enter your name here