<tt> Syntax
Syntax Diagram for <tt>
Opening Tag |
Content |
Closing Tag |
<tt> |
text |
</tt> |
<tt> Description
The <tt>. . . </tt> tags cause text
that occurs between them to be displayed in a monospaced typewriterish font
(the name "<tt>" comes from the historical artifact that the
first "marriage" between typewriters and computers was in the TeleType
machine). Font styles are cumulative; that is, a section of bold within a
section of typewriter-font (or vice versa) will cause text that is inside both
affected regions to be bold typewriter font, as you would expect. The only
exception to this is table cells: invoking typewriter font before a table will
not cause the text within the table cells to be typewriter-font; these
must be set individually.
<tt> Example
This markup:
Here is some typewriter-font text,
some bold typewriter-font text,
some italic typewriter-font text, and
even some bold italic typewriter-font
text.
. . .causes the following to be displayed:
Here is some typewriter-font text,
some bold typewriter-font text,
some italic typewriter-font text, and
even some bold italic typewriter-font
text.
Last Modified: