HTML - Formatting

Overview

Estimated time: 25–35 minutes

Use semantic tags to convey meaning, not just appearance.

Examples

<p><strong>Important</strong> vs <em>emphasis</em>.</p>
<p><b>B (stylistic)</b> vs <i>I (alternate voice)</i>.</p>
<p><small>Fine print</small>, <mark>highlight</mark>, <del>was</del> <ins>now</ins>.</p>
<p>H<sub>2</sub>O and E=mc<sup>2</sup>.</p>

Common Pitfalls

  • Using <b> and <i> when <strong>/<em> convey actual meaning.