Formatting: Text

HTML also has special elements (tags) for defining text with special meaning:

HTML file: Displayed by browser:
<p><b>This text is bold</b> using the B tag.</p>

<p><strong>This text is important</strong> using the STRONG tag.</p>

<p><i>This text is italic</i> using the I tag.</p>

<p><em>This text is emphasized</em> using the EM tag.</p>

<p><mark>This text is marked</mark> using the MARK tag.</p>

<p><small>This text is small</small> using the SMALL tag.</p>

<p><del>This text is deleted</del> using the DEL tag.</p>

<p><ins>This text is inserted</ins> using the INS tag.</p>

<p><sub>This text is subscripteded</sub> using the SUB tag.</p>

<p><sup>This text is superscripted</sup> using the SUP tag.</p>

This text is bold using the B tag.

This text is important using the STRONG tag.

This text is italic using the I tag.

This text is emphasized using the EM tag.

This text is marked using the MARK tag.

This text is small using the SMALL tag.

This text is deleted using the DEL tag.

This text is inserted using the INS tag.

This text is subscripted using the SUB tag.

This text is superscripted using the SUP tag.

Let's take a look at each of these!

Back buttonTable of ContentsNext button