The short answer
HTML has two elements that make text bold by default: <strong> and <b>. They look the same in the browser, but they mean different things:
<strong>marks text that is important, serious or urgent.<b>draws attention to text without making it more important.
In HTML, the elements you choose describe what your content is (this is called semantic HTML), while CSS controls how it looks. So the question isn't "do I want bold text?", but "why does this text stand out?"
Correction: the original version of this post described <b> as purely presentational, with no meaning at all. That was true of older versions of HTML, but the current HTML standard redefined <b> with a specific meaning of its own, as we'll see below.
What <strong> means
Use <strong> when the text matters more than the text around it. Typical examples are warnings, cautions and the key point a reader mustn't miss:
<p><strong>Warning:</strong> this action can't be undone.</p>
<p>Before you start, <strong>make a backup of your files</strong>.</p>
Warning: this action can't be undone.
Before you start, make a backup of your files.
You can also nest <strong> elements to show increasing importance. Each extra level means "even more important":
<p><strong>Keep this door closed. <strong>It is alarmed.</strong></strong></p>
What <b> means
The HTML standard now describes <b> as the Bring Attention To element. It's for text you want to stand out visually, but which isn't any more important than the rest. Good examples include:
- keywords in a summary or abstract
- product names in a review
- the lead-in words at the start of an article or paragraph
- actionable words in an interactive story, such as "You see a key on the table."
<p>We tested the <b>Aurora 5</b> and the <b>Nimbus X</b> side by side.</p>
We tested the Aurora 5 and the Nimbus X side by side.
The product names stand out so readers can scan for them, but they aren't warnings or key points.
Good to know: the HTML standard describes <b> as a last resort, to use only when no other element fits. Headings should be headings (<h2> and so on), important text should be <strong>, and highlighted search matches should be <mark>. And if text just needs to look bold for design reasons, such as a button label or a card title, use CSS instead.
Their cousins: <em>, <i> and <mark>
Italics have a matching pair of elements, and there's a third element for highlighting:
| Element | Meaning | Example |
|---|---|---|
<strong> | Importance, seriousness or urgency | Do not share your password. |
<b> | Draws attention, without extra importance | We tested the Aurora 5. |
<em> | Stress emphasis that changes the meaning of a sentence | I did lock the door. |
<i> | A different voice or mood: technical terms, phrases in other languages, thoughts, names of ships | The phrase je ne sais quoi |
<mark> | Highlighted because it's relevant right now, such as a search match | Results for CSS |
<em> is the one people find hardest to grasp. It marks the word you'd stress when speaking, and moving it changes what the sentence means:
I didn't say she took the biscuit. (Someone else said it.)
I didn't say she took the biscuit. (Someone else took it.)
I didn't say she took the biscuit. (She took something else.)
Tip: when you use <i> for a phrase in another language, add a lang attribute, as in <i lang="fr">. Screen readers can then switch to the right pronunciation.
What screen readers really do
The original version of this post said screen readers give <strong> text "appropriate emphasis and tone". In practice, that's not the case: the major screen readers (software that reads pages aloud), such as NVDA, JAWS and VoiceOver, don't announce <strong>, <b>, <em> or <i> by default. They read the words in the same voice as the surrounding text. Some can be set up to mention formatting, but most people don't turn that on, because it gets very noisy.
This leads to an important rule: don't rely on bold or italics alone to communicate meaning. Make sure the words themselves carry the message:
<!-- Unclear without the visual styling -->
<p>Fields in <strong>bold</strong> must be filled in.</p>
<!-- Clear for everyone -->
<p><strong>Required:</strong> email address</p>
Starting a warning with a word like "Warning:" or "Important:" works for every reader, whether they can see the bold text or not.
So does the right tag still matter? Yes. Semantic elements describe your content accurately for other tools too, such as reader modes, translation tools, search engines and AI systems, and for future developers reading your code. Using the right element costs nothing and keeps your HTML meaningful. Just don't expect it, on its own, to change what screen reader users hear.
What about SEO?
The original version of this post suggested that <strong> could improve your search rankings more than <b>. Google has said it treats the two elements the same way, so there's no ranking benefit in swapping one for the other.
Bolding keywords to try to influence search results doesn't help, and it makes your writing harder to read. Choose tags based on what your content means, write clearly for people, and let search engines take care of the rest.
Styling with CSS
Browsers style both elements with font-weight: bolder by default, so they look identical. Because the meaning lives in the HTML, you're free to change how each one looks with CSS:
/* Important text in warnings stands out in red */
.warning strong {
color: #b91c1c;
}
/* Product names get a subtle highlight instead of bold */
.review b {
font-weight: 600;
background: #eff6ff;
padding: 0 4px;
border-radius: 4px;
}
Warning: this action can't be undone.
We tested the Aurora 5 and the Nimbus X side by side.
And for text that should look bold without having any special meaning, skip the HTML elements and use the font-weight property:
.card-title {
font-weight: 700;
}
Choosing the right tag
Ask yourself why the text should stand out:
- It's important, serious or urgent: use
<strong>. - It changes how the sentence is spoken: use
<em>. - It's highlighted because it's relevant right now: use
<mark>. - It's a heading: use a heading element (
<h2>to<h6>). - It should catch the eye, but isn't more important: use
<b>. - It's a different voice, a term or a phrase in another language: use
<i>. - It just needs to look bold or italic for design: use CSS (
font-weightorfont-style).
Wrapping up
<strong> and <b> look the same, but they say different things about your content: <strong> means "this is important", while <b> means "notice this". Pick the element that matches your meaning, use CSS for appearance, and make sure your words carry the message on their own, so every reader gets it, however they access your page.