HTML Bold

HTML bold tag is represented by <b> tag. It is used to display the written text in bold format. If you want to show your text in bold letters, then put it within <b> . . . </b> tag.


The bold Tag

Here are the example of html bold text:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Bold Text </title>
</head>
<body>
<p> This is Normal text. </p>
<b> This is Bold Text. </b>
</body>
</html>

Output

HTML Bold Text Example

This is normal text.

This is Bold Text.

The Strong Tag

Here is the example of html strong tag.


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Strong Text </title>
</head>
<body>
<p> This is Normal text </p>
<strong> This Text is Strong </strong>
</body>
</html>

Output

HTML Strong Tag Example

This is Normal text

This Text is Strong

Difference between HTML <b> and <strong> tag

The bold tag in html is represented by <b> tag which is explicit whereas <strong> tag is semantic. The <b> tag is for "offset text conventionally styled in bold". If you read deeper into the details you'll see it adds, "without conveying any extra emphasis or importance".

The <strong> tag adds extra semantic meaning and importance to the HTML document. It is recommended to use strong tag for bold format now.

Browser Support

Element
Microsoft Edge browser.png Edge
Chrome browser.png Chrome
Firefox browser.png Firefox
Opera browser.png Opera
safari browser.png Safari
<bold>
Yes
Yes
Yes
Yes
Yes




Color Picker

List of color names supported by all browser »



Character Code

List of character codes to display special character »



Language Code

List of all language supported by all browser »



Country Code

List of Country code supported by all browser »

Latest Updates

PHP Introduction

How to Run a PHP program in Xampp?

How can I create a phpinfo.php page?

How to Define a Variable in PHP

PHP Echo and Print Statements

Working with PHP Operators

Understanding the PHP Data Types

How to Write Comments in PHP

How to Define a Constant in PHP

PHP if...else...elseif Statements