MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 1898 of <strong>

  • Revision slug: HTML/Element/strong
  • Revision title: strong
  • Revision id: 1898
  • Created:
  • Creator: hobophobe
  • Is current revision? No
  • Comment Use syntax highlighting; 1 words added, 2 words removed

Revision Content

The HTML Strong Element (<strong>) gives text strong emphasis, typically this is displayed in bold.

DOM Interface

This element implements the HTMLElement interface.

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

Example

<p>When doing x it is <strong>imperative</strong> to do y before proceeding.</p>

Result

When doing x it is imperative to do y before proceeding.

Bold vs. Strong

It is often confusing to new developers why there are so many ways to express the same thing on a rendered website. Bold and Strong are perhaps one of the most common. Why use <strong></strong> vs <b></b> you have to type a whole lot more with strong and it produces the exact same result right?

Perhaps not, strong is a logical state, and bold is a physical state. Logical states separate presentation from the content, and by doing so allows for it to be expressed in many different ways, perhaps instead of rendering some text as bold you want to render it red, or a different size, or underlined, or whatever. It makes more sense to change the presentational properties of strong than it does bold. This is because of bold is a physical state, there is no separation of presentation and content, making bold do anything other than bold text would be confusing and illogical.

See also

{{ HTML:Element_Navigation() }}

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

Revision Source

<p>The HTML Strong Element (<span style="font-family: Courier New;">&lt;strong&gt;</span>) gives text strong emphasis, typically this is displayed in 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 inclusive, 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>
<h4>Example</h4>
<pre class="brush: html">&lt;p&gt;When doing x it is &lt;strong&gt;imperative&lt;/strong&gt; to do y before proceeding.&lt;/p&gt;
</pre><h4>Result</h4>
<p>When doing x it is <strong>imperative</strong> to do y before proceeding.</p>
<h3>Bold vs. Strong</h3>
<p>It is often confusing to new developers why there are so many ways to express the same thing on a rendered website. Bold and Strong are perhaps one of the most common. Why use &lt;strong&gt;&lt;/strong&gt; vs &lt;b&gt;&lt;/b&gt; you have to type a whole lot more with strong and it produces the exact same result right?</p>
<p>Perhaps not, strong is a logical state, and bold is a physical state. Logical states separate presentation from the content, and by doing so allows for it to be expressed in many different ways, perhaps instead of rendering some text as bold you want to render it red, or a different size, or underlined, or whatever. It makes more sense to change the presentational properties of strong than it does bold. This is because of bold is a physical state, there is no separation of presentation and content, making bold do anything other than bold text would be confusing and illogical.</p>
<h3>See also</h3>
<ul> <li><a href="/en/HTML/Element/b" title="en/HTML/Element/b">HTML bold element</a></li>
</ul>
<p>{{ HTML:Element_Navigation() }}</p>
<p>{{ languages( { "de": "de/HTML/Element/strong", "pl": "pl/HTML/Element/strong" } ) }}</p>
Revert to this revision