HTML <tt> tag

The <tt> tag stands for teletype type in an HTML document.

Type: Inline Element

Syntax of <tt> tag

<tt> Text </tt>
The <tt> tag is not supported in HTML5.

Supported Browsers

Tag Chrome Internet Explorer Firefox Safari Opera Mini
<tt> Yes Yes Yes Yes 1Yes

Full code example (Obsolete)

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>
 Press <tt> Ctrl + z </tt> to undo the last action.
</p>
</body>
</html>
Run The code »

More reference

By default, the <tt> element is rendered using the browser's default non-proportional font. This tag is not supported in HTML5. There are many options to replace it.

Old Tag Replacement Option
<tt> <code>
<tt> <pre>
<tt> font-family:"monospace;"

Default CSS property of <tt> element

tt {
  font-family:"Lucida Console", "Menlo", "Monaco", "Courier",monospace;
}