The <b> tag is used to display bold text. You can use a b tag inside a <p> tag.

Syntax

<b>Text displayed in bold</b>

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML b tag<title>
</head>
<body>
<p> Hello.. <b>This is Bold text.</b></p>
</body>
</html>

Output

Hello.. This is Bold text.

With CSS, you can make a text bold by setting font-weight:bold.

Example

<p style="font-weight:bold">This text is bold</p>

Output

This text is bold