Label tag and input in form
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
<form action=""> <label for="male">Male</label> //for and id should be same <input type="radio" name="sex" id="male" value="male"><br> <label for="female">Female</label> <input type="radio" name="sex" id="female" value="female"><br><br> <input type="submit" value="Submit"> </form>