HTML <strong> Tag

Beginner
5 min read
Updated: Nov 2026
4 examples
Live preview

Definition and Usage

The <strong> element marks content of strong importance, seriousness, or urgency — for example a warning, a critical rule, or a note label.

Browsers typically show it in bold, but do not use it only for looks. For decorative bold use CSS font-weight. For attention without extra importance prefer <b>. For stress emphasis prefer <em>.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Nesting increases importance.

You may nest <strong> inside <strong>. Each level means a greater degree of importance.

HTML Syntax

syntax.html
<strong> important text</strong>

Both start and end tags are required. Content is phrasing content (text and inline elements).

Attributes

<strong> has no element-specific attributes. Use globals when needed:

AttributeDescriptionTry it
classOptional CSS hook if you restyle importanceTry it
idUnique identifier for linking or scriptingGlobal attr
titleAdvisory text (tooltip). Rarely needed on strongOptional

Global Attributes

The <strong> tag also supports the Global Attributes in HTML.

Live Preview

Compare <strong> with <b> and <em> — similar looks, different meaning.

Pick by meaning: importance, attention, or spoken stress.

Result

Before proceeding, make sure you put on your safety goggles.

strong — the instruction is important / urgent.

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Basic Importance

Wrap the phrase that carries strong importance or urgency.

HTML
<p>
  Before proceeding,
  <strong>make sure you put on your safety goggles</strong>.
</p>
Try It Yourself

How It Works

  1. Write the sentence in a paragraph or other phrasing parent.
  2. Wrap the important phrase in <strong>…</strong>.
  3. Keep both tags — start and end are required.
  4. Meaning first: the tag says this part is important, not just bold.

Example 2 — Warning / Note Label

A common pattern: mark the label of a note or warning with <strong>.

HTML
<p>
  <strong>Important:</strong>
  Save your work before you close the editor.
</p>
Try It Yourself

How It Works

  1. Put the label (like “Important:” or “Warning:”) inside <strong>.
  2. Leave the rest of the note as normal text so the label stands out.
  3. Keep the label short — one word or a short phrase.
  4. Do not bold the whole paragraph unless the entire sentence is equally critical.

Example 3 — Nested Importance

Nesting <strong> increases the degree of importance.

HTML
<p>
  This is
  <strong>very <strong>important</strong></strong>.
</p>
Try It Yourself

How It Works

  1. Wrap the outer important phrase in <strong>.
  2. Wrap the strongest word in an inner <strong>.
  3. Each nesting level means greater importance (per the HTML model).
  4. Use nesting sparingly so the signal stays clear.

Example 4 — strong vs b

Importance uses strong. Attention without extra importance uses b.

HTML
<p>
  <strong>Warning:</strong> Do not feed the gremlin after midnight.
</p>
<p>
  The keyword is <b>async</b> in this summary.
</p>
Try It Yourself

How It Works

  1. First sentence: strong marks a serious warning label.
  2. Second sentence: b draws the eye to a keyword without calling it more important.
  3. Visual bold may match, but the semantics differ.
  4. Pick by meaning, not by the default bold look.

Edge Cases & Pitfalls

Most mistakes treat strong as a bold button instead of importance.

semantics

Not for decoration

Want bold only? Use CSS font-weight. Save <strong> for real importance or urgency.

vs b

Do not confuse with b

<b> brings attention without extra importance. <strong> says the content matters more.

vs em

Stress is em

Spoken stress that changes meaning fits <em>. Warnings and critical labels fit <strong>.

scope

Do not wrap everything

If the whole page is in strong, nothing is special. Mark only the critical words or labels.

a11y

Implicit role is strong

Assistive tech can expose strong importance. Overusing it dilutes that signal — reserve it for what truly matters.

Browser Support

The <strong> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<strong>

Widely available since about July 2015 (and long before as semantic importance). Chrome, Firefox, Safari, Edge, and Opera all support it fully.

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<strong> Widely supported

Bottom line: Safe to use everywhere for strong importance. Choose strong, b, or em by meaning — not by default bold or italic.

Key Takeaways

  • Role: <strong> marks strong importance, seriousness, or urgency.
  • Look vs meaning: bold is the default look; semantics are the reason to use it.
  • Compare: b draws attention, em stresses meaning, CSS bolds for decoration.
  • Nesting: nested <strong> means stronger importance — use it carefully.

One line: use <strong> when the text is important, serious, or urgent — not merely bold.

Default CSS Settings

Typical user-agent styling (browsers may add more details):

default.css
strong {
  font-weight: bold;
}

You may restyle strong with CSS, but keep a clear difference from surrounding text so importance stays visible.

Frequently Asked Questions

The strong element marks text of strong importance, seriousness, or urgency — for example a warning or a critical instruction.
No. Browsers often show strong in bold, but strong means importance. For look-only bold, use CSS font-weight. For attention without extra importance, prefer b.
strong means greater importance. b draws attention without saying the text is more important (for example a product name in a review summary).
strong marks importance or seriousness. em marks stress emphasis that can change how a sentence is understood when spoken.
Yes. Nested strong elements indicate a greater degree of importance at each level.
No. strong only supports the global attributes, such as class, id, and lang.

Next: style

Learn how to embed CSS rules in an HTML document with the style element.

style tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

12 people found this page helpful