HTML - Bold

  »   HTML  »   HTML tutorials - Using bold tag, exemples

To get the bold text we will use the <b> tag.

html<b>This text is bold </b>

Demo

This text is bold

HTML - Bold text - applications

Generally, the bold text is used to emphasize certain words or certain terms in within a sentence.

html<p><b>Bold</b> text is useful to emphasize certain <b>terms</b></p>

Demo

Bold text is useful to emphasize certain terms

It can also be used to write a definition. But, we'd better exemplify:

html<p><b>Negrita</b> - corresponding word in Spanish for bold</p>

Demo

Negrita - corresponding word in Spanish for bold

HTML strong tag

The HTML strong tag is meant to go a little bit further. It normally displays a bold text on a desktop computer, but it has different behavior on PDA for example. On some PDA all text is bold. So you can not bold a bold text, but the strong tag just underlines the text to make it stand out. On the other hand on some speaking programs for blind people, the strong just lowers the tone so that the person listening understands the importance of the highlighted part.

html<p>This a <b>bold word</b> and this <strong>other word</strong> will have a similar appearance.</p>

Demo

This a bold word and this other word will have a similar appearance.

So just to be clear, bold - give style to an html element, while strong is a semantic tag, that stands out the keyword in a different way depending of the context.