Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <div class="container-fluid"> <div class="form-group has-success has-feedback"> <label class="control-label" for="username">Username</label> <input type="text" class="form-control" id="username" aria-describedby="usernameStatus"> <span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true"></span> <span id="usernameStatus" class="help-block">Username is available!</span> </div> <div class="form-group has-warning has-feedback"> <label class="control-label" for="password">Password</label> <input type="password" class="form-control" id="password" aria-describedby="passwordStatus"> <span class="glyphicon glyphicon-warning-sign form-control-feedback" aria-hidden="true"></span> <span id="passwordStatus" class="help-block">Weak password</span> </div> <div class="form-group has-error has-feedback"> <label class="control-label" for="phone">Phone Number</label> <input type="tel" class="form-control" id="phone" aria-describedby="phoneStatus"> <span class="glyphicon glyphicon-remove form-control-feedback" aria-hidden="true"></span> <span id="phoneStatus" class="help-block">Please enter a valid phone number</span> </div> </div> <!-- jQuery library --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Bootstrap JS --> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <!-- Initialize Bootstrap functionality --> <script> // Initialize tooltip component $(function () { $('[data-toggle="tooltip"]').tooltip() }) // Initialize popover component $(function () { $('[data-toggle="popover"]').popover() }) </script>
Preview