<tt>

The <tt> (teletype) element is typically used to apply monospaced highlighting to the content of the element. This element is part of the highlighting domain. Use this element only when a more semantically appropriate element is not available. For example, for specific items such as inline code fragments, use the <codeph> element.

Note

Style sheets can be used to format the <tt> element differently, just like any other element can be restyled. Thus, it is not the case that content in <tt> elements will necessarily be rendered as monospaced.

Content models

See appendix for information about this element in OASIS document type shells.

Inheritance

+ topic/ph hi-d/tt

Example

<p>Make sure that the screen displays <tt>File successfully created</tt> before
proceeding to the next stage of the task.</p>

While the previous example demonstrates a potential use of <tt>, it might be more properly encoded using <systemoutput>.

Attributes

The following attributes are available on this element: Universal attribute group and @outputclass.

Was this helpful?