HTML Emphasis: strong, em, b and i Elements
Express emphasis and importance
Use strong for important, urgent or serious content. Use em when stressing a word changes the intended reading of a sentence. Both describe meaning, even if their default styles resemble bold or italic text.
<p> <strong>Warning:</strong> Wear gloves.</p><p> I said <em>two</em> tickets, not three.</p>The warning carries importance and the number receives stress.
Distinguish b and i
Use b to draw attention without adding importance, for example a product keyword in a summary. Use i for a different voice or a technical term in surrounding prose, where no more specific semantic element fits. Use CSS for purely visual changes.
<p> The kit includes a <b>brush</b> and cloth.</p><p> The term <i>staccato</i> describes short notes.</p>The tags distinguish keywords and a term without implying a warning.
Combine meanings carefully
These elements can be nested if both meanings apply. Close inner tags before outer tags. Do not rely on a screen reader announcing emphasis consistently; convey critical instructions in the words themselves.
<p> <strong> Do <em>not</em> touch the hot plate. </strong></p>The whole instruction is important and not receives stress.
Practice and next steps
Write an important instruction containing one stressed word. Explain why the nested elements have different meanings.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Emphasis and importance — Knowledge Check
Apply the concepts from Emphasis and importance.
Which element indicates urgent importance?
Which element stresses one word in a sentence?
When is CSS a better choice than strong?
Which element suits a technical term conventionally set apart without stress or importance?
What does <strong>Do <em>not</em> enter</strong> communicate?