This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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

DOM Interface
HTMLElement

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 information

{

See also

Related pages

  • xmp

Attributions