<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.
<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
This section is non-normative.
<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>.
Content model
(Text | <boolean> | <cite> | <keyword> | <ph> | <q> | <term> | <text> | <tm> | <xref> | <state> | <data> | <data-about> | <draft-comment> | <foreign> | <unknown> | <required-cleanup>)*
Not contained by any element.
- Text
<boolean><cite><data><data-about><draft-comment><foreign><keyword><ph><q><required-cleanup><state><term><text><tm><unknown><xref>
Not contained by any element.
Inheritance
+ topic/ph hi-d/tt
The <tt> element is specialized from <ph>. It is defined in the hi-domain module.
Attributes
The following attributes are available on this element: Universal attribute group and outputclass.