I am a beginner in Bootstrap and i am working on styling forms with bootstrap. I am trying to create a horizontal form using form-horizontal class of bootstrap BUT label and textfield are not displayed in same horizontal line.
I have seen a tutorial about it and i copied the same exact code from that tutorial but it didn't work for me whereas it worked for the instructor of the tutorial.
Need help figuring out the problem
Here's the relevant code codepen link
<div class="row">
<div class="col-sm-6">
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-4 control-label">First Name</label>
<div class="col-sm-8">
<input type="text" class="form-control"/>
</div>
</div>
</form>
</div><!--end of column-->
</div><!--end of row-->