Learning HTML 3.2 by Examples, section 5 Descriptions of HTML 3.2 tags:

TT - teletype (monospaced) text


To present text in a monospaced font.

Typical rendering

Monospaced font. See general notes on rendering markup.

Basic syntax


Possible attributes


Allowed context

Text container, i.e. any element that may contain text elements. This includes most HTML elements. In particular, text elements can be nested.


Text elements. Notice that this disallows e.g. paragraph breaks.


Example TT-1.html:

Compare <TT>monospaced font</TT> with normal font.


Avoid using TT; use logical markup instead, e.g. CODE or SAMP.

See general notes on text markup, which provide additional examples.

Date of last update: 2010-12-16.
This page belongs to the free information site IT and communication, section Web authoring and surfing, by Jukka "Yucca" Korpela.