BOLD (<b>) Tag

by Jai 28-May-19

0 181


HTML <b> tag acts as a presentation tag used to markup written text as bold format. If we want to display plain text in bold format you can use text between <b></b> tag.

Appearance and working of <b> tag is identical to <strong> tag but it is different. Because <b> should not be used to extra importance text. For extra importance text, we always use the <strong> tag.

The same working of <b> tag can be used in CSS also. But in CSS, 'font-weight' property is used to set bold text.

Usage:
It is used in the condition where there is a need of bold text specification i.e. when anyone wants to show written text in bold form without conveying additional importance.

Code:

<!DOCTYPE html>
<html>
<head>
<title>HTML b Tag</title>
</head>
<body>
<p>HTML b Tag Example</p>
<p>This is Normal text</p>
<p>this is <b>HTML tutorial</b></p>
</body>
</html>

Output:

BOLD (<b>) Tag


Share:


Comments

    No Comments Yet.

Leave a Reply