When you’re writing, there’s often that one phrase where “please don’t skip past this part.” That’s when you reach for tags that emphasize text. This time you’ll learn the two main ones, <strong> and <em>.
Important spots use strong
<strong> is a tag that carries the meaning “this is important.” In many browsers, the text it holds is shown in bold.
<p>For payment, <strong>cash only</strong>, please.</p>This way, only “cash only” becomes bold and catches your eye right away. The point is that it’s not just decoration — it carries the meaning of “important.”
For a change in tone, use em
<em> is short for emphasis. It’s a tag with the nuance of “read this part with a little force,” and in many browsers it’s shown in italics.
<p>This is a <em>really</em> recommended book.</p>When you read it aloud, you put a bit more force on “really” — that’s the feeling. If <strong> is “important,” then <em> is “the nuance of how it’s said.” Telling them apart will come naturally as you get used to it.
Layering the two together
When you want a spot that’s “both important and carries force in how it’s said,” you can nest <strong> and <em> to layer them.
<p><strong><em>No matter what</em>, please don't forget.</strong></p>You get a look with both bold and italics applied, letting it carry the meaning of both “important” and “nuance.” But this is a combo move for the moments that really count. Usually, either <strong> or <em> on its own is enough.
Summary of this lesson
- Especially important spots use
<strong>(usually turns bold) - Spots where you want force in the words use
<em>(usually turns italic) - Choose both by “meaning,” not by “look”
