C# .NET - how to make the particular font to be bold in htmltag

Asked By pradeep kumar on 10-Nov-11 05:52 AM
how to make the particular font to be bold in htmltag
Kirtan Patel replied to pradeep kumar on 10-Nov-11 05:54 AM
<b> this is bold text </b>
Suchit shah replied to pradeep kumar on 10-Nov-11 05:56 AM
That u can do it through

txtname.Attributes.Add("style", "font-weight:bolder")
Web Star replied to pradeep kumar on 10-Nov-11 06:46 AM
Which text you need to bold in html put within strong tag as follows

<strong> this is bold text </strong>
Anil Kumar replied to pradeep kumar on 10-Nov-11 07:40 AM
Hi all,

Pradeep, go for Kirtan's answer, he gave you the simplest method to so. Mention the text you want to see in bold, in the place of text. <b>text</b>.

Thank you
Anil