Home » HTML » HTML Bold

HTML Bold

HTML bold tag is represented by <b> tag. It is used to display the written text in bold format. It is a paired tag. 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








Follow Us: