strong, em, b and i
strong marks importance and em marks stress. b draws attention without extra importance, while i marks text in an alternate voice or mood; their meaning is separate from default bold or italic styling.
Distinguish importance and stress from attention-drawing or alternate-voice text.
Bold and italic look simple, but HTML has two elements for each, and they are not synonyms. One pair adds meaning; the other pair sets text apart without adding importance. Picking the right one tells assistive technology and search engines something true about your words.
The rule
strong for importance, em for stress; b and i only set text apart.
<strong> marks content as important, serious or urgent.
<p><strong>Do not</strong> refreeze thawed food.</p><em> marks stress emphasis: the word you would say differently out loud. Moving it changes the meaning of the sentence.
<p>I <em>asked</em> for tea.</p> <!-- I asked, I didn't demand -->
<p>I asked for <em>tea</em>.</p> <!-- tea, not coffee --><b> draws attention to text without making it more important: keywords in a summary, product names in a review, the opening words of an article.
<i> marks text that is different in kind from what surrounds it: a word from another language, a technical term, a ship's name, a character's thoughts.
<p>The <i lang="la">Ficus religiosa</i> in the courtyard is two hundred years old.</p>By default strong and b look bold, and em and i look italic. The looks are the same; the meanings differ. And if you just want bold text for design reasons, such as a card title that is not important content, that is CSS's job, not any of these four.