Skip to main content

 Element reference

PSML elements from <author> to <xref>

<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 categorycharacter-style
PSML levelportable
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>&lt;monospace&gt;</monospace>
element.</para>

This would typically be converted into HTML as:

<p>An example of <code><monospace&gt;</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.

Created on , last edited on