html bold

You can use the HTML bold method in 3 ways, The text can be bolded by HTML bold tag and CSS property. let’s know how to bold text in HTML.

<div>
	<p>I want to <strong>bold</strong> my text</p>

	<p>I want to <b>bold</b> my text</p>

	<b>Using b tag to bold my text</b>

	<strong>Using strong tag to bold my text</strong>
</div>

HTML Bold Using CSS Property

But if you want to bold a lot of text at a time with CSS property instead of bold tags, then you have to see the example given below.

.myclass span{
	font-weight:900; /* You can set weight 100-900 */
}

.myclass h3{

	font-weight:bold;
}

<div class=”myclass”>
	<p>i want to <span>bold my text</span> using CSS Property </p>
	<h3>am using css property </h3>
</div>

Browser Support

  • Edge
  • Firefox
  • Internet Explorer
  • Opera
  • Safari
  • Chrome

Frequently Asked Questions

We have answers to some questions that people search on the Internet everyday. Let us know what are those questions and what are their answers.

What is the HTML code for bold?

You can use <b> tag and <strong> tag to bold your text.

What does </ B mean in HTML?

<b> tag means “bold”.

What is text formatting in HTML?

To make the text appear well, the text is formatted with a few HTML tags.

What is BR tag?

<br> tag is used to break the line.

Where do I put CSS in HTML?

There are 3 ways to apply CSS, either you can link your file inside the <head> tag, or you can add inline CSS, or you can place your CSS on the same page with the <style> tag.

What is div in HTML?
In simple language, div is a box inside which you set your elements.

How do you underline in HTML?
With the tag you can underline your text.

Note: All the examples shown in this article, we have tested before, you can use these examples without any difficulty.

Related: The easiest example of applying HTML background color and image