Text formatting

Formatting tags can be used to alter the look of texts without using Cascading Style Sheets (CSS). The examples below illustrates different formatting elements:

<i>This text is italics</i>

Output:

This is italics

<b>This text is bold</b>

Output:

This text is bold

To define a subscript, use the <sub> tag:

<p>The text that follows is a subscript <sub>this text</sub></p>

Output:

The text that follows is a subscript this text

To define a superscript, use the <sup> tag:

<p>The text that follows is a superscript <sup>this text</sup></p>

Output:

The text that follows is a superscript this text