How can I make some portions of the checkbox text bold. I have the following checkbox:
<asp:CheckBox ID="chkPart1" runat="server" Text="To obtain a" + <b>"valid"</b> + "Copy you must check the appropriate box below:" + <b>"I am:" + </b>" />
I want to make Valid and I am bold in the above text so I want something like this:
I tried writing the code this way:
To obtain an valid Copy you must check the appropriate box below: I am:
and this is what I am getting:
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Create an input type checkbox with label
<input type="checkbox" id="chkPart1" runat="server" Text="" /> <label for="chkPart1">
To obtain a <b>valid</b> Copy you must check the appropriate box below: <b>I am:</b>
</label>
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

