<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>
<!------ Include the above in your HEAD tag ---------->
<form class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend>Registration Form</legend>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="1stname">First Name</label>
<div class="col-md-8">
<input id="1stname" name="1stname" type="text" placeholder="Joe" class="form-control input-md" required="">
<span class="help-block">Please enter your first name above</span>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<label class="col-md-4 control-label" for="surname">Surname</label>
<div class="col-md-8">
<input id="surname" name="surname" type="text" placeholder="Bloggs" class="form-control input-md" required="">
<span class="help-block">Please enter your last name</span>
</div>
</div>
</fieldset>
</form>