Run ❯
zig
.
com
Result Size:
1260 x 277
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../../cdn.jsdelivr.net/npm/bootstrap%404.6.2/dist/css/bootstrap.min.css"> <script src="../../cdn.jsdelivr.net/npm/jquery%403.7.1/dist/jquery.slim.min.js"></script> <script src="../../cdn.jsdelivr.net/npm/popper.js%401.16.1/dist/umd/popper.min.js"></script> <script src="../../cdn.jsdelivr.net/npm/bootstrap%404.6.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="container"> <h2>Form Validation</h2> <p>In this example we use <code>.was-validated</code> to indicate what's missing before submitting the form:</p> <form action="https://www.w3schools.com/action_page.php"> <div class="form-group"> <label for="uname">Username:</label> <input type="text" class="form-control is-valid" id="uname" placeholder="Enter username" name="uname" required value="JohnDoe"> <div class="valid-feedback">Valid username.</div> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="password" class="form-control is-invalid" id="pwd" placeholder="Enter password" name="pswd" required> <div class="invalid-feedback">Please fill out this field.</div> </div> <div class="form-group form-check"> <label class="form-check-label"> <input class="form-check-input is-invalid" type="checkbox" name="remember" required> I agree on blabla. <div class="invalid-feedback">Check this checkbox to continue.</div> </label> </div> <button type="submit" class="btn btn-primary">Submit</button> </form> </div> </body> <!-- /bootstrap4/tryit.asp?filename=trybs_form_validation_server&stacked=h by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 06 Feb 2025 18:14:12 GMT --> </html>