HTML <tt> (Teletype Text) Tag

❮ Previous Home Next ❯

Deprecated: Not Supported in HTML5.


<p>This is <tt>Teletype Text</tt>.</p>


The <tt> inline element is used to indicate that text should be rendered in a monospaced font similar to teletype text.

The element is being marked as obsolete or deprecated and should be avoided in favor of CSS.

Note: This element has been deprecated by the W3C under XHTML 1.1 and marked as obsolete HTML5.

Version: HTML 2, 3.2, 4, 4.01

Standard Syntax


Browser Support


Global Attributes

The <tt> element also supports the Global Attributes in HTML.

Event Attributes

The <tt> element also supports the Event Attributes in HTML.

By Default CSS Value(s)

Most of the browsers will display the <tt> element with the following by default value(s)

tt {
  font-family: monospace;
❮ Previous Home Next ❯