<b>
tag in HTMLThe <b>
tag is used to bold text in an HTML page. The structure of the <b>
tag is as follows:
<b>Text Here</b>
The <b>
tag does not have any semantic value; therefore, it must be used in cases where the only purpose is to make the text bold. An alternate to the <b>
tag is the <strong>
tag. The <strong>
tag is also used to bold text; however, it results in high semantic value for the enclosed text.
<b>
tagThe following code provides an example:
In the example above, only the text enclosed in the <b>
tag is bold, and the remaining text is not.
Browser | Support |
---|---|
Chrome | Yes |
Firefox | Yes |
Safari | Yes |
Edge | Yes |
Opera | Yes |
Free Resources