Text Formatting in pure HTML (Minimal CSS styling):

* Note: Some syntaxes used here are already deprecated, do not use them in actual production sites.


Bold & Important Text (<b> and <strong>)

Bold: bold text using <b>.

Strong: important text using <strong>.

Code (ready to copy-paste):

<b>bold text</b>
<strong>important text</strong>

Italic & Emphasized Text (<i> and <em>)

Italic: italic text using <i>.

Emphasized: emphasized text using <em>.

Code (ready to copy-paste):

<i>italic text</i>
<em>emphasized text</em>

Underlined & Strikethrough Text (<u>, <s>, and <del>)

Underlined: underlined text using <u>.

Strikethrough: strikethrough text using <s>.

Sample, pricing discount: $99 $49 using <del> and <ins>.

Code (ready to copy-paste):

<u>underlined text</u>
<s>strikethrough text</s>
<del>$99</del> <ins>$49</ins>

Subscript & Superscript (<sub> and <sup>)

Water formula: H2O using <sub>.

Math equation: E = mc2 using <sup>.

Code (ready to copy-paste):

H<sub>2</sub>O
E = mc<sup>2</sup>

Highlighted & Small Text (<mark> and <small>)

Highlighted: highlighted text using <mark>.

Small: smaller text using <small>.

Code (ready to copy-paste):

<mark>highlighted text</mark>
<small>smaller text</small>

Monospace & Code Text (<code> and <kbd>)

Inline programming code: let x = 10; using <code>.

Keyboard shortcut sample: Press Cmd + C to copy using <kbd>.

Code (ready to copy-paste):

<code>let x = 10;</code>
<kbd>Cmd</kbd> + <kbd>C</kbd>

Deprecated Font Tag (<font>)

This is red text in monospace font (Deprecated syntax).

Code (ready to copy-paste):

<font color="red" size="4" face="monospace">This is red text in monospace font (Deprecated syntax).</font>