asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Elements > TT Element

<tt> Element


Renders text in a fixed-width font.HTML 2, 3.2, 4, 4.01 Deprecated

HTML Syntax

NOTE: Both start and end tags are required.

Remarks

The tt element displays a portion of text in teletype style font.

The element is similar in function to the <code>, <kbd> and <samp> elements, that render text in the browser’s default fixed-width font.

tt is used for inline formatting. For sections of code samples where block formatting is important, use the <pre> element to preserve the space characters and line breaks used in the code structure.

NOTE: This element has been deprecated and is no longer recommended.

Attributes

The <tt> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

The following shows how the tt element may be used.

<p>This paragraph has <tt>some plain text</tt>.</p>

which would render on a Web page as

This paragraph has some plain text.

See Also

CODE   KBD   PRE   SAMP   XMP



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note