HTML b tag

The tag is used to display bold text. You can use a b tag inside a (paragraph) tag. Any text specified in tag is displayed as bold text.

HTML b tag

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


Share Tweet Send
Loading...
You've successfully subscribed to Geekinsta
Great! Next, complete checkout for full access to Geekinsta
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.