Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Server Side Form Validation</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="m-4"> <form> <div class="mb-3"> <label class="form-label" for="inputEmail">Email</label> <input type="email" class="form-control is-valid" id="inputEmail" placeholder="Email" value="peterparker@example.com" required> <div class="valid-feedback">Good! Your email address looks valid.</div> </div> <div class="mb-3"> <label class="form-label" for="inputPassword">Password</label> <input type="password" class="form-control is-invalid" id="inputPassword" placeholder="Password" required> <div class="invalid-feedback">Opps! You have entered an invalid password.</div> </div> <div class="mb-3"> <div class="form-check"> <input class="form-check-input" type="checkbox" id="checkRemember"> <label class="form-check-label" for="checkRemember">Remember me</label> </div> </div> <button type="submit" class="btn btn-primary">Sign in</button> </form> </div> </body> </html>