HTML bold tag


HTML bold tag is represented by <b> tag.

HTML <b> tag is used to display the written text in bold format. It is strictly a presentational element. If you want to show your text in bold letters and not have real semantic meaning, then put it within <b>…….</b> tag.


Difference between HTML <b> and <strong> tag

The b tag is explicit whereas strong tag is semantic.The <strong> tag adds extra semantic meaning to the HTML document.

It is recommended to use strong tag for bold format now.


HTML bold tag example

<p> Hello guys, <b>this is the method to write bold text.</b></p>  

Output:

Hello guys, this is the method to write bold text.

There is also a CSS ‘font-weight’ property to set bold text.


Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<b>YesYesYesYesYes

Leave a Reply

Your email address will not be published. Required fields are marked *