HTML <label> Tag
Example
Three radio buttons with labels:
<form action="demo_form.asp">
<label for="male">Male</label>
<input type="radio" name="gender" id="male"value="male"><br>
<label for="female">Female</label>
<input type="radio" name="gender" id="female"value="female"><br>
<label for="other">Other</label>
<input type="radio" name="gender" id="other"value="other"><br><br>
<input type="submit" value="Submit">
</form>
<label for="male">Male</label>
<input type="radio" name="gender" id="male"value="male"><br>
<label for="female">Female</label>
<input type="radio" name="gender" id="female"value="female"><br>
<label for="other">Other</label>
<input type="radio" name="gender" id="other"value="other"><br><br>
<input type="submit" value="Submit">
</form>
Post a Comment