HTML:Element:tt
From MDC
Contents |
[edit] HTML Teletype Text Element
<tt>...</tt> - The HTML Teletype Text Element produces an inline element displayed in the browser's default monotype font (Lucida Console). 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 <code> element.
[edit] Example
<p>Enter the following at the telnet command prompt: <kbd>set localecho</kbd><br /> The telnet client should display: <tt>Local Echo is on</tt></p>
[edit] Result
Enter the following at the telnet command prompt: set localecho
The telnet client should display: Local Echo is on
[edit] Notes
A CSS rule can be defined for the tt selector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.
Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of style sheets.
[edit] See also
- HTML Code Element
- HTML 4.01 Specification: Font Styles
| HTML Elements |
| A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
| (Quick Links: HTML Element Cross Reference, HTML Category) |