View video tutorial

HTML <b> Tag


The <b> tag is used to markup text as bold.

HTML <b> Tag

The <b> tag specify bold text without any additional emphasis.

The same effect can be achieved by using font-weight: bold; property in CSS.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.


<h1>HTML b tag example</h1>
<p>This text is not bold but <b>'this is bold text'</b>.</p>
Try it Now »

Click on the "Try it Now" button to see how it works.