Forms are integral parts of a web page – whenever you need to capture any information from the user you need to create a web form in your page. Bootstrap offers a variety of ways to design and create HTML forms for both mobile devices and desktops.
Let's create a Contact Us form for our web application. Here is our code:
<form> <div class="form-group"> <label for="yourName" class="control-label">Name</label> <input type="text" class="form-control" id="yourName" placeholder="Your name please"> </div> <div class="form-group"> <label for="yourEmail" class="control-label">Email address</label> <input type="email" class="form-control" id="yourEmail" placeholder="Your Email Id"> </div> <div class="form-group"> <label for="yourComments" class="control-label">Tell us</label> <textarea class="form-control" id="yourComments" placeholder="Your commments...