XHTML 1.1 Tutorial

Character Format

Tag Purpose
<font> Defines the font name, size, and text color
This is not a valid for strict DTD, please use '<styles>' or CSS.
The <font> tag specifies the font face, font size, and font color of text.

<b> Defines bold text
This tag is used to show bold text.
Example: <b>Bold text</b> is used to display  Bold text

<i> Defines italic text
This tag is used to show italic text.
Example: <i>Italic text</i> is used to display Italic text

<u> Defines underlined text
This tag is used to show an underline text.
Example: <u>Underlined text</u> is used to display Underlined text

<em> Defines emphasized text
This tag is used to show emphasized text, though most browser treat it like italic text.
Example: <em>Emphasized text</em> is used to format Emphasized text

<sup> Defines superscripted text
This tag is to show superscripted text.
Example: <sup>Superscripted text</sup> is used to format Superscripted text

<sub> Defines subscripted text
This tag is used to show subscripted text.
<sub>Subscripted text</sub> is used to format Subscripted text


Previous Next

This tutorial is final project for INFSCI 2000, Fall 2004
Copyright 2004 School of Information Science, University of Pittsburgh