<strong> marks strong importance, seriousness or urgency. <em> marks stress emphasis. Browsers often render both with distinctive typography, but their purpose is semantic rather than simply visual.
<p><strong>Warning:</strong> Save your work before continuing.</p>
<p>I <em>really</em> need this today.</p>
Warning: Save your work before continuing.
I really need this today.
| Element | Meaning |
|---|---|
<strong> | Strong importance, seriousness or urgency |
<em> | Stress emphasis |
<b> | Attention without added importance |
<i> | Alternate voice/convention or text set apart |
Nesting <em> can indicate a greater degree of stress emphasis. Avoid using semantic elements merely as a styling shortcut.
Its meaning is strong importance; bold rendering is the browser default presentation.
Its meaning is stress emphasis; italic rendering is common but not required.
Yes, when both meanings apply.
B is suitable for drawing attention without strong importance; CSS is suitable when the need is purely visual.
Yes. Their semantics remain even when presentation changes.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.