Bold in HTMLTo make any text bold in HTML we can use the HTML b (<b>) tag. IN other words we can say that we can make any text to appear bold in a web browser by writing the text in the HTML <b> tag.

Bold in HTML using the <b> tag should be considered as the last option as per HTML 5, this in turn means that we should make text bold in HTML by using the <b> tag only if there is nothing else that can achieve the same functionality.

Syntax to Bold in HTML using <b> tag

Some text goes here

Example to do Bold in HTML using <b> Tag

Bold in HTML Code Output is<b>
a good website.
</b> is
a good website.

Here in the above example we have achieved doing text bold in HTML using the HTML <b> tag. Note that the text within the HTML <b> tag is only rendered as bold in the HTML code output.

HTML b (<b>> tag supports the HTML Global Attributes and HTML Event Attributes.

HTML b tag supporting browsers

S. No. Browser Supported(Yes/No)
1 Internet Explorer Yes
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes
Tagged , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.