<monospace>
Summary
The <monospace>
element is a character-style element used to display text using a monospace font, for example for snippets of computer code.
Related character style elements: <italic>
, <bold>
, <sup>
, <sub>
Usage context
Element category | character-style |
---|---|
PSML level | portable |
Permitted content | |
Permitted parent | |
HTML equivalent | <code> |
OpenXML equivalent |
Attributes
This element does not have any attributes.
Examples
An example of <monospace>
element.
The previous paragraph could be represented in PSML as:
<para>An example of <monospace><monospace></monospace> element.</para>
This would typically be converted into HTML as:
<p>An example of <code><monospace></code> element.</p>
Schema
XML Schema
<xs:element name="monospace" type="character-style"/>
Relax Schema
element monospace { character-style }
Compatibility
This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.