<b>

  • Revision slug: HTML/Element/b
  • Revision title: b
  • Revision id: 61151
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 3 words removed

Revision Content

The HTML Bold Element (<b>) makes text bold.

DOM Interface

This element implements the HTMLElement interface.

Implementation note: up to Gecko 1.9.2 included, Firefox implements the HTMLSpanElement interface for this element.

Example

   <p>
   
       This is the first sentence.  <b>This whole sentence is bold.</b>
   
   </p>

Result

This is the first sentence. This whole sentence is bold.

See also: HTML Strong Element

{{ HTML:Element_Navigation() }}

{{ languages( { "de": "de/HTML/Element/b", "pl": "pl/HTML/Element/b" } ) }}

Revision Source

<p>The HTML Bold Element (<span style="font-family: Courier New;">&lt;b&gt;</span>) makes text bold.</p>
<h3 class="editable">DOM Interface</h3>
<p>This element implements the <code><a href="/en/DOM/element" title="en/DOM/element">HTMLElement</a></code> interface.</p>
<div class="note">
<p><strong>Implementation note: </strong>up to Gecko 1.9.2 included, Firefox implements the <a href="/en/DOM/span" title="en/DOM/span"><span style="font-family: Courier New;">HTMLSpanElement</span></a> interface for this element.</p>
</div>
<h3>Example</h3>
<pre class="eval">   &lt;p&gt;
   
       This is the first sentence.  &lt;b&gt;This whole sentence is bold.&lt;/b&gt;
   
   &lt;/p&gt;
</pre>
<h4>Result</h4>
<p>This is the first sentence. <strong>This whole sentence is bold.</strong></p>
<p>See also: <a href="/en/HTML/Element/strong" title="en/HTML/Element/strong">HTML Strong Element</a></p>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "de": "de/HTML/Element/b", "pl": "pl/HTML/Element/b" } ) }}</p>
Revert to this revision