Teletype text

Teletype text is text that is displayed on a fixed-width display such as a teletype, text-only screen, or line printer.

XDITA

<tt>

HDITA

<code>

MDITA (core and extended profiles)
Backtick

The available attributes vary based on the authoring format:

XDITA and HDITA
The following attributes are available on this element: localization attributes, universal attributes, and @keyref.
MDITA
For the MDITA core profile, the equivalent of the XDITA @keyref attribute is supported. For the MDITA extended profile, attributes can be specified by using the HDITA representation.

Examples

This section is non-normative.

Example 1. XDITA example

The following example demonstrates the use of teletype text in an XDITA topic.

Example needed
Example 2. HDITA example

The following example demonstrates the use of teletype text in an HDITA topic.

Example needed

Teletype text is text that is displayed on a fixed-width display such as a teletype, text-only screen, or line printer.

The teletype component is typically rendered in a monospaced font.

The available attributes vary based on the authoring format:

XDITA and HDITA
The following attributes are available on this element: localization attributes, universal attributes, and @keyref.
MDITA
For the MDITA core profile, the equivalent of the XDITA @keyref attribute is supported. For the MDITA extended profile, attributes can be specified by using the HDITA representation.