Bootstrap Label And Input Code Example


Example 1: bootsrap label

<span class="label label-default">Default Label</span> <span class="label label-primary">Primary Label</span> <span class="label label-success">Success Label</span> <span class="label label-info">Info Label</span> <span class="label label-warning">Warning Label</span> <span class="label label-danger">Danger Label</span>

Example 2: bootstrap radio

<div class="form-check form-check-inline">   <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">   <label class="form-check-label" for="inlineRadio1">1</label> </div> <div class="form-check form-check-inline">   <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">   <label class="form-check-label" for="inlineRadio2">2</label> </div> <div class="form-check form-check-inline">   <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3" disabled>   <label class="form-check-label" for="inlineRadio3">3 (disabled)</label> </div>

Example 3: bootstrap forms

<form>   <div class="form-group">     <label for="exampleInputEmail1">Email address</label>     <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">     <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>   </div>   <div class="form-group">     <label for="exampleInputPassword1">Password</label>     <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password">   </div>   <div class="form-check">     <input type="checkbox" class="form-check-input" id="exampleCheck1">     <label class="form-check-label" for="exampleCheck1">Check me out</label>   </div>   <button type="submit" class="btn btn-primary">Submit</button> </form>

Example 4: bootstrap form input select

<div class="col-lg-6 col-md-6 col-12">   <div class="input-group mb-3">     <div class="input-group-prepend">       <select class="form-control select2bs4" name="country_code" id="country_code" style="width: 100%">         <option value="+91">+91</option>         <option value="+351">+351</option>         <option value="+1">+1</option>       </select>     </div>     	<input type="text" name="user" class="form-control" placeholder="Email Or Mobile Number">     </div> </div>

Example 5: checkbox html bootstrap 4

<div class="form-check form-check-inline">       <input id="checkbox3" type="checkbox" checked="checked">       <label for="checkbox3">Checkbox checked</label>     </div>

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable