<strong> & <em> Tags in HTML

Quick facts

CategoryFlow content, phrasing content, palpable content
Content modelPhrasing content (text and other inline elements)
Tag omissionNeither the start nor the end tag can be omitted
Permitted parentsAny element that accepts phrasing content
DOM interfaceHTMLElement (both)

Syntax

<p><strong>Warning:</strong> this cannot be undone.</p> <p>I <em>really</em> mean it.</p>

Live example

Edit the code below and watch the preview update instantly.

index.html
Preview

Attributes

AttributeDescription
—Both elements accept only the global attributes.

Common examples

A warning that must not be missed

<strong> marks text that is important, serious or urgent.

<p><strong>Warning:</strong> this action cannot be undone.</p>

Changing the meaning with emphasis

<em> marks the word you would stress when speaking — and moving it changes the meaning.

<p>I <em>never</em> said she took the money.</p> <p>I never said <em>she</em> took the money.</p>

Both together

You can combine them: important text that also has a stressed word.

<p><strong>Do <em>not</em> share your password with anyone.</strong></p>

Changing how they look

Bold and italic are only the default look. CSS can restyle them while the meaning stays.

<style> strong { color: #c0392b; font-weight: 700; } em { font-style: normal; text-decoration: underline; } </style>

<strong> vs <em>

Both add meaning, but different kinds. <strong> says “this is important” — a warning, a key fact, a deadline. <em> says “stress this word” — the emphasis you would put on it when reading aloud, which can change what a sentence means.

A good test: if you are pointing out something the reader must notice, use strong. If you are changing the tone of a sentence, use em. If you only want bold or italic for looks, use CSS or the <b> and <i> tags instead.

<strong><em>
MeaningImportance, urgencyStress emphasis
Default styleBoldItalic
ExampleWarnings, key factsA stressed word

Common mistakes to avoid

  • Using strong for headings. A bold line is not a heading; use <h2>–<h6> so the page has a real outline.
  • Bolding everything. When half a paragraph is strong, nothing stands out any more.
  • Using em for titles of books or films. Those are titles, not stress — use <cite>.
  • Using strong to make text look bold in a design. If there’s no extra importance, use CSS font-weight.

Accessibility & SEO tips

  • Most screen readers don’t change their voice for strong or em, so never rely on emphasis alone to carry a warning — put the word “Warning:” or “Important:” in the text too.
  • Search engines may give a little extra weight to text in strong, but it’s a tiny signal — keyword-bolding doesn’t improve rankings and makes text harder to read.
  • Use emphasis sparingly so that it keeps working when it really matters.
  • Think about how the sentence sounds when read aloud: if you would raise your voice or slow down on a word, that word may deserve em or strong; if not, leave it plain.

Browser support

Supported in every browser, including Chrome, Edge, Firefox, Safari and their mobile versions — it has been part of HTML since the very first versions.

Related tags

Frequently asked questions

What is the difference between <strong> and <b>?
<strong> means the text is important, and that meaning is passed to assistive technology. <b> only draws attention to text, such as a keyword or product name, without saying it is more important. Both look bold by default.
What is the difference between <em> and <i>?
<em> adds stress emphasis that changes the meaning of the sentence. <i> marks text in a different voice or mood, such as a technical term, a foreign phrase or a ship's name, without adding emphasis.
Can I nest <strong> or <em> tags?
Yes. Nesting increases the level: <strong> inside <strong> marks something even more important, and <em> inside <em> adds more emphasis.
Does <strong> help SEO?
Only very slightly, if at all. It helps readers scan the page, which is good for engagement, but bolding keywords to rank better doesn't work.
How do I make text bold without <strong>?
Use CSS: font-weight: bold (or 700) on a <span> or class. The text looks bold without telling browsers that it is important.
Do screen readers announce <strong> and <em>?
Most don't by default, so readers may not hear the difference. That's why important warnings should also say "Warning:" in the text itself.
Is <em> the same as italic text?
No. Em means stress emphasis and is shown in italics by default. For italics without extra meaning, such as a foreign word or a ship name, use <i>, or CSS font-style: italic.
Can I use <strong> inside a heading?
Yes, to mark the important part of a longer heading. But headings are already important, so bolding the whole heading with strong adds nothing.