ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Vertical Form
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> <title>Bootstrap 4 Vertical Form</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Vertical Form</h1> <p class="text-justify">Bootstrap provides styling and alignment form controls elements.</p> <form action="" method="post"> <div class="form-group"> <label for="User Name">User Name</label> <input type="TEXT" class="form-control" id="username" name="user'" placeholder="User name" required /> </div> <div class="radio"> <label><input name="gender" type="radio" value="Male" />Male</label> </div> <div class="radio"> <label><input name="gender" type="radio" value="Female" />Female</label> </div> <div class="form-group"> <label for="userEmail">Email</label> <input type="email" class="form-control" id="userEmail" placeholder="User Email" required /> </div> <div class="form-group"> <label for="userPassword">Password</label> <input type="password" class="form-control" id="userPassword" placeholder="User Password" required /> </div> <button type="button" class="btn btn-primary disabled">Login</button> </form> </div> <!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html>
Output :
Running