<strong>

  • Revision slug: HTML/Element/strong
  • Revision title: strong
  • Revision id: 1896
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment +de; 12 words added, 5 words removed

Revision Content

<strong>...</strong> - The HTML Strong element gives text strong emphasis, typically this is displayed in bold.

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><strong>&lt;strong&gt;...&lt;/strong&gt;</strong> - The HTML Strong element gives text strong emphasis, typically this is displayed in bold.</p>
<h4>Example</h4>
<pre class="eval">   &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