Learning HTML 3.2 by Examples, section 5 Descriptions of HTML 3.2 tags:

B - bolding


To present text in a boldface font.

Typical rendering

Bolded. See general notes on rendering markup.

Basic syntax


Possible attributes


Allowed context

Text container, i.e. any element that may contain text elements. This includes most HTML elements. In particular, text elements can be nested.


Text elements. Notice that this disallows e.g. paragraph breaks.


Example B-1.html:

In the main menu of the program, one letter, usually the
initial, of each word is in bold face, e.g. <B>s</B>ave.
This indicates the letter that can be used as a shortcut.

Example B-2.html:

<P>In mathematics, vectors are usually denoted with boldface
letters like <B>x</B>.</P>
<P>When presenting computer source programs in printed form,
one often uses boldface for reserved words like <B>int</B> in C.</P>


Avoid using B; use logical markup instead. In particular, for emphasis use EM or STRONG.

See general notes on text markup, which provide additional examples.

Date of last update: 2010-12-16.
This page belongs to the free information site IT and communication, section Web authoring and surfing, by Jukka "Yucca" Korpela.