Text Formatting Tags
| Tag | Renders as | Meaning |
|---|---|---|
<b> | Bold text | Bold (no extra meaning) |
<strong> | Strong text | Bold + important meaning |
<i> | Italic text | Italic (no extra meaning) |
<em> | Emphasised text | Italic + emphasis meaning |
<mark> | Highlighted | Highlighted text |
<small> | Smaller text | Fine print, side comments |
<del> | Strikethrough — removed content | |
<ins> | Inserted text | Underline — added content |
<sub> | H2O | Subscript |
<sup> | x2 | Superscript |
<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.