how do I make all labels such as : first name, last name, etc in bold, by using header only? thank you
<form>
<fieldset class="set1">
<legend class="set1">Music Lover's Personal information</legend>
First Name
<input type="text" name="firstname" value=""><br><br>
Family Name
<input type="text" name="lastname" value=""><br><br>
Gender:
<input type="radio" name="gender" value="Female">Female
<input type="radio" name="gender" value="male">Male<br><br>
What age category are you from?
I would wrap each label in a label
tag and then in CSS, with this code, you can get it:
form label {font-weight:bold}
Hope this helps you.
If you are unable to change your HTML markup and actually use labels, or spans, or other tags to wrap your labels, then you'd have to do something like:
fieldset { font-weight: bold; }
fieldset * { font-weight: normal; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With