<b> tag

HTML <b> tag

The <b> tag defines bold text.

This tag is basically used to mark a text as bold but it does not make the text as an important text.

Syntax:
<b>Text to make bold</b>

Example

<p><b>Bold text</b></p>

Default CSS Value

font-weight:bold;

How Browser will display

INLINE.

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
None None None

Attributes used

No specific attribute

Note/Info:
If you simply wish to make a text bold and not important, then it is better to use CSS font-weight property as – font-weight:bold;

If you are looking for a comprehensive knowledge on font-weight property, then learn about CSS Fonts.

Global Attributes

The <b> tag supports Global attributes.

Event Attributes

The <b> tag supports Event attributes.

Supporting Browsers

supporting-browsers for tags

Related Tags

<strong>.

To underline a text, you can use the <u> element.

You can learn about HTML formatting here.

Tutorials for all brains!