Skip to content

HTML Tutorial Text Content

HTML Text Formatting: strong, em, mark and More

Lesson 13 of 81 2 min read By Deepak Paswan Updated Oct 4, 2026

HTML has elements that give words extra meaning inside a sentence. Prefer these over using CSS alone, because they tell browsers and assistive tools why the text is special.

index.html
HTML
<p>This is <strong>very important</strong>.</p>
<p>I <em>really</em> mean it.</p>
<p>Remember to <mark>bring your receipt</mark>.</p>
<p><small>Prices include tax.</small></p>
<p>Water is H<sub>2</sub>O and 3<sup>2</sup> is nine.</p>
<p>Price: <del>$12</del> <ins>$9</ins></p>

What each element means

ElementMeaningUsually looks like
strongStrong importanceBold
emStress emphasisItalic
markHighlighted for referenceYellow background
smallSide comments, fine printSmaller text
sub / supSubscript / superscriptLowered / raised
delText that was removedStrikethrough
insText that was addedUnderlined

strong and em versus b and i

b and i also exist. They make text bold or italic without adding importance. Use them only for cases such as a product name or a foreign phrase, where the style matters but the meaning does not. When something is important, use strong. When you want to change the stress of a sentence, use em.

warning
Using strong just to make text bold
If you only want bigger or bolder text for design, use CSS. Overusing strong makes screen reader users hear everything as important.

Exercise: format a notice

Write a sentence that has one important word, one emphasised word and a note in fine print.

Show a possible solution
index.html
HTML
<p>Please <strong>return</strong> books by <em>Friday</em>.</p>
<p><small>Late fees may apply.</small></p>