A Complete Guide to Web Design

(やまだぃちぅ) #1
108 Chapter 7 – Formatting Text

Summary of Text Tags


Web Design in a Nutshell, eMatter Edition

<span> NN:2, 3, 4 - MSIE:2, 3, 4, 5 - HTML 4 -WebTV- Opera3
<span>...</span>

This is a null text container used for identifying a span of inline characters. It has
no inherent style effect on its own, but can be used in conjunction with Style
Sheets to apply styles to any span of text. (See Chapter 23.)

<strike> NN:2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4D- WebTV - Opera3
<strike>...</strike>

Enclosed text is displayed as strike-through text (crossed through with a hori-
zontal line).

<strong> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<strong>...</strong>

Enclosed text is strongly emphasized. Nearly all browsers render <strong>text in
bold.

<sub> NN: 2, 3, 4 - MSIE:2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<sub>...</sub>

Formats enclosed text as subscript.

<sup> NN: 2, 3, 4 - MSIE:2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<sup>...</sup>

Formats enclosed text as superscript.

<tt> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<tt>...</tt>

Formats enclosed text as typewriter text. The text enclosed in the<tt>tag will be
displayed in a monospaced font such as Courier.

<u> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4D- WebTV - Opera3
<u>...</u>

Enclosed text will be underlined when displayed.

<var> NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3
<var>...</var>

Indicates an instance of a variable or program argument (usually displayed in
italic).
Free download pdf