I am trying to select basically the "label" of an input that is not enclosed in a label tag. I would like to style the values of radio button options in an HTML form. For example:
<!DOCTYPE html>
<html>
<body>
<form>
<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>
<input type="radio" name="gender" value="other"> Other
</form>
</body>
</html>
In the above example, how would I select the "Male", "Female" and "Other" labels beside each button to style in CSS?
Thanks!