HTML Text Formatting
HTML Text Formatting
HTML contains several elements for defining text with a special meaning.
Example
This text is bold
Try it Yourself »
Example
<b>This text is bold</b>
Try it Yourself »
The HTML <strong> element defines text with strong importance. The content
inside is typically displayed in bold.
Example
<strong>This text is important!</strong>
Try it Yourself »
Tip: The <i> tag is often used to indicate a technical term, a phrase from
another language, a thought, a ship name, etc.
Example
<i>This text is italic</i>
Try it Yourself »
The HTML <em> element defines emphasized text. The content inside is typically
displayed in italic.
Tip: A screen reader will pronounce the words in <em> with an emphasis, using
verbal stress.
Example
<em>This text is emphasized</em>
Try it Yourself »
Example
<small>This is some smaller text.</small>
Try it Yourself »
Example
<p>Do not forget to buy <mark>milk</mark> today.</p>
Try it Yourself »
Example
<p>My favorite color is <del>blue</del> red.</p>
Try it Yourself »
Example
<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>
Try it Yourself »
Example
<p>This is <sub>subscripted</sub> text.</p>
Try it Yourself »
Example
<p>This is <sup>superscripted</sup> text.</p>
Try it Yourself »
For a complete list of all available HTML tags, visit our HTML Tag Reference.