<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<div class="container">
<form>
<legend>Inline label field</legend>
<fieldset class="form-group inline-label">
<input type="text" class="form-control" id="formGroupExampleInput" placeholder="Example input">
<label for="formGroupExampleInput">Example label</label>
</fieldset>
<fieldset class="form-group inline-label">
<input type="text" class="form-control" id="formGroupExampleInput2" placeholder="Another input">
<label for="formGroupExampleInput2">Another label</label>
</fieldset>
</form>
</div>