HTML Bold-Strong

HTML Bold-Strong

HTML Bold and Strong

HTML Bold and Strong are used to give formatting to the text on the web page.

  • Bold tag and strong tag makes the text darker which increase the importance of text.

  • HTML Bold is defined by <b> tag.

  • HTML Strong is defined by <strong> tag.


Example:

<b>This text becomes bold.</b>
<strong>This text becomes strong.</strong>

Example Explanation:

In the above, we have shown an example of HTML Bold and Strong Tag.

  • Both <b> and <strong> tag is used to make the text darker as compared to normal text.

Run the code to see the effect.

Difference between <b> and <strong> tag

  • HTML <b> tag is used only for presentation and display purposes and does not have any extra importance.

  • HTML <strong> tag is used for presentation, and it makes text semantically more important than bold text.

  • Also, when the browser converts text into speech, then strong textis pronounced differently from bold text.

"There is no difference in the web page appearance of <b> and <strong> tags."

play_circle Video Tutorial (Hindi)

YouTube Video Thumbnail
Click to watch video