Text in HTML pages can be dressed up in many ways. There are built-in tags that allow you to show text as a specific type. Table 21-1 shows some common tags for displaying different types of text.
|
Tag |
Description |
|---|---|
|
<cite> |
Bibliographic citation |
|
<code> |
Source code |
|
<dfn> |
Definition |
|
<em> |
Emphasis |
|
<kbd> |
Text typed on a keyboard |
|
<samp> |
Sequence of literal characters |
|
<strong> |
Strong emphasis |
|
<var> |
Variable in code |
You can also use other tags to enhance the appearance of text. Table 21-2 lists common text formatting tags.
|
Tag |
Description |
|---|---|
|
<b> |
Bold |
|
<big> |
Increase the default font size |
|
<i> |
Italicize the text |
|
<small> |
Decrease the default font size |
|
<sub> |
Subscript |
|
<sup> |
Superscript |
|
<tt> |
Monospaced font |
|
<u> |
Underline text |