<htmlstart/>

HTML Formatting

HTML has tags for bold, italic, highlight, strikethrough, superscript, and more.

Text Formatting Tags

TagRenders asMeaning
<b>Bold textBold (no extra meaning)
<strong>Strong textBold + important meaning
<i>Italic textItalic (no extra meaning)
<em>Emphasised textItalic + emphasis meaning
<mark>HighlightedHighlighted text
<small>Smaller textFine print, side comments
<del>Deleted textStrikethrough — removed content
<ins>Inserted textUnderline — added content
<sub>H2OSubscript
<sup>x2Superscript
<p>My <strong>favourite</strong> element is <em>really</em> the <mark>paragraph tag</mark>.</p>

<p>Price was <del>$199</del> now <ins>$99</ins>!</p>

<p>Water is H<sub>2</sub>O and area equals r<sup>2</sup></p>
Prefer <strong> over <b> and <em> over <i> — they carry semantic meaning that helps screen readers and SEO.