Text Formatting
4 min read
Use strong for important text and em for emphasis. mark highlights text, code displays inline code, abbr wraps abbreviations, and time wraps dates. These give text semantic meaning for accessibility and search engines.
Inline Text Elements
<strong>Bold / Important</strong>
<em>Italic / Emphasis</em>
<u>Underline</u>
<s>Strikethrough</s>
<mark>Highlighted</mark>
<small>Small text</small>
<sup>Superscript</sup>
<sub>Subscript</sub>
<code>inline code</code>
<kbd>Ctrl+C</kbd>
<abbr title="HyperText Markup Language">HTML</abbr>