Back to HTML Notes
Topic #98

Strong

Learn how to use the <strong> element to convey semantic importance in HTML, distinguishing it from visual-only styling.

What it is

The <strong> element indicates that its contents have strong importance, seriousness, or urgency. Unlike simple bolding, this is a semantic marker. Screen readers and search engines interpret <strong> as a signal that the text carries significant weight within the context of the document. It is distinct from the <b> (bring attention) element, which draws attention for stylistic reasons without implying extra importance.

Why it matters

  • Accessibility: Assistive technologies can announce <strong> text with increased volume or pitch, helping users understand emphasis.
  • SEO: Search engines may weigh content inside <strong> tags more heavily when determining relevance.
  • Semantic Clarity: It separates meaning from presentation, allowing CSS to handle visuals while HTML handles structure.
  • User Experience: Helps sighted users quickly scan critical information like warnings or key terms.

Syntax or steps

Wrap the important text directly inside opening and closing <strong> tags. Do not nest other block-level elements inside it, as it is an inline element.

<p>Please read the <strong>safety instructions</strong> before proceeding.</p>

Example

Here is a realistic comparison showing correct usage alongside common misuse.

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Strong vs B</title>
</head>
<body>
    <h1>Product Warning</h1>
    
    <!-- Correct: Semantic importance -->
    <p><strong>Warning:</strong> This device contains lithium batteries.</p>
    
    <!-- Incorrect for importance: Visual only -->
    <p><b>Note:</b> The manual is available online.</p>
    
    <!-- Nested usage -->
    <p>The <strong>most critical step</strong> is to <strong>save your work</strong> frequently.</p>
</body>
</html>

In this example, "Warning:" uses <strong> because ignoring it could cause harm. "Note:" uses <b> because it merely highlights a label without implying danger or high priority. The nested example shows multiple independent emphases within one sentence.

Common mistakes

  • Using <strong> for headings: Use <h1>-<h6> for structure. Headings are already semantically important.
  • Overusing emphasis: If everything is bold, nothing is. Reserve <strong> for truly critical points.
  • Confusing with <b>: Do not use <b> if you mean "important." Use <b> only for keywords, product names, or typographic conventions where no semantic weight exists.
  • Nesting block elements: Never put <div> or <p> inside <strong>.

When to use it

ElementPurposeUse When...
<strong>Semantic ImportanceThe text is urgent, serious, or critical to understanding.
<b>Visual AttentionYou want to highlight text for style (e.g., keywords) without implying importance.
<em>Semantic StressYou need to indicate stress or emphasis on specific words (like italics).

Practice

Guided Exercise: Rewrite this sentence using <strong> for the critical action: "You must restart the server after updating the config."

Challenge: Identify why this is wrong: <p><strong><h2>Title</h2></strong></p>. Hint: Check element categories.

Quick check

Q: Should I use <strong> to make a word look bold?

A: No. Use CSS font-weight: bold; for appearance. Use <strong> only when the word has semantic importance.

Summary

The <strong> element communicates importance to machines and humans alike, separating meaning from style. Always choose it over <b> when the content carries weight beyond mere visual distinction.

Want to go beyond the notes?

Join Coding Now Tech Institute's HTML course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

Strong – FAQs

Quick answers about learning Strong in HTML.

This free note from Coding Now Tech Institute explains Strong in HTML — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every HTML topic on Coding Now Tech Institute, including Strong, is 100% free with no signup required.
With focused practice, most students grasp Strong in 1–3 days from these notes; pairing it with Coding Now Tech Institute's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the Coding Now Tech Institute Community (/community) — expert instructors answer within 24 hours.
Call NowEnroll Now