This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
The HTML Teletype Text Element (
<tt>) produces an inline element displayed in the browser's default monotype font. This element was intended to style text as it would display on a fixed width display, such as a teletype. It probably is more common to display fixed width type using the
<span>with CSS, instead.
This element has no other attributes than the global attributes, common to all elements.
This element implements the
Implementation note: up to Gecko 1.9.2 inclusive, Firefox implements the
HTMLSpanElement interface for this element.
<p>Enter the following at the telnet command prompt: <code>set localecho</code><br /> The telnet client should display: <tt>Local Echo is on</tt></p>
Enter the following at the telnet command prompt:
The telnet client should display:
Local Echo is on
ttselector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.