HTML b tag
HTML b tag bolds a piece of text within a paragraph. It is used to focus the attention of users on keywords.
<p>Firstly the thief enters in the victim's room.Then he steals <b>money</b>, <b>jewellery</b> and <b>kills</b> the victim.</p>
</>
Firstly the thief enters in the victim's room.Then he steals money, jewellery and kills the victim.
Tag Uses
Specific uses of <b> tagBold text draws the attention of user effectively. It is used to highlight keywords.
element can also be used with I element.
The content inside b element can also be formatted using CSS properties.
Tag omission
Both starting and ending tags are necessary for the b element.
Global Attributes
All the global attributes are applicable on the b element.
Note: It should not be confused with <strong> element. Because b element is just to format text. While <strong> element is used where caution, note or tip is to write.
Next Previous
Was this article helpful?