tt
Summary
The teletype element (<tt>) creates monospaced text. It’s use is deprecated in favour of semantic elements like <code> and CSS styles. However, the tt element is still widely supported in browsers.
Overview Table
This feature is supported in HTML4, but is non-conforming in HTML5. Use CSS instead.
Examples
This example uses the TT element to render text in a fixed-width font.
<TT>Here's some plain text.</TT>
Standards information
- HTML 4.01 Specification, Section 15.2.1
HTML information
{
See also
Related pages
xmp
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]