HTML Reference ยท Inline Text
The <strong> element
Reference for the HTML <strong> element: what strong importance means, how it differs from <b> and <em>, accessibility notes, examples and technical details.
The <strong> element marks text that has strong importance: something the reader must not miss, such as a warning, a deadline or the key point of a sentence. Browsers display it in bold by default, but the reason to use it is the meaning, not the weight.
<p><strong>Do not unplug the device</strong> while the update is installing.</p>
Try it
Nesting <strong> inside <strong> raises the importance further. Browsers usually look the same at each level, so style nested levels with CSS if the difference must be visible.
Attributes
This element has no attributes of its own. It accepts the global attributes, such as class, id, lang and title.
Usage notes
<strong>vs<b>vs<em>. Use<strong>when the text matters more than the text around it. Use<em>when you would change the stress of a spoken sentence ("I said tomorrow"). Use<b>to draw attention without extra importance, such as product names or key words in a summary.- Don't use it for headings. A line of bold text is not a heading; use
<h1>โ<h6>so the document outline stays correct. - Don't use it just to make text bold. If you only want bold styling, use CSS (
font-weight: boldor700) on a meaningful element. - Labels and warnings. A short prefix such as
<strong>Note:</strong>or<strong>Caution:</strong>is a good use: it tells the reader how to treat the sentence that follows. - Accessibility. Most screen readers do not announce
<strong>by default, so never rely on it alone to carry critical meaning. Put the important information in the words themselves.
Technical summary
| Content categories | Flow content, phrasing content, palpable content |
| Permitted content | Phrasing content |
| Tag omission | None; both the start and end tags are required |
| Permitted parents | Any element that accepts phrasing content |
| Implicit ARIA role | strong |
| DOM interface | HTMLElement |
| Default display | inline |
Browser support
Supported in every browser.
Related
<em>โ stress emphasis<b>โ attention without extra importance<mark>โ highlighted for relevance- Lesson: Formatting Text