Please try is as below.
Note: This is just an example.Adjust it according to your app. :)
<table style="width:300px">
<tr>
<td><label for="male">Male</label></td>
<td><input type="text" name="mName"/></td>
</tr>
<tr>
<td><label for="female">Female</label></td>
<td><input type="text" name="fName"/></td>
</tr>
</table>
LIVE DEMO : JSFiddle