1. Computing

Discuss in my forum

<tt></tt>

By , About.com Guide

TT Description:

The TT tag creates teletype or monospaced fonts of the enclosed text. But if you’re not using the TT tag to markup the text as teletype, it’s recommended that you use the font-weight style property.

This tag is a font style tag. Most font style tags are rendered by the browser in a specific style. But it’s recommended that you use CSS if you need to style text in that form.

TT Web Browser Support:

HTML Versions

TT Attributes:

TT End Tag:

</tt> REQUIRED

Contents:

CDATA Usually text. The following tags are valid within the TT tag:
a, abbr, acronym, applet, b, basefont, bdo, big, br, button, cite, code, dfn, em, font, i, iframe, img, input, kbd, label, map, object, q, s, samp, script, select, small, span, strike, strong, sub, sup, tt, u, var

TT Valid Context:

The TT tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

TT Usage:

standard teletype text

<tt>Compare teletype text</tt> to non-teletype text.

TT Special Notes:

  • Use the teletype tag when you want a monospaced font.
  • Do not use it for text that represents computer code — use the CODE tag.
  • This tag has a distinct advantage over the PRE tag (that many people use to get monospaced fonts), because it doesn't affect the formatting of the text.

More TT Information:

©2013 About.com. All rights reserved.