---
title: "Element <monospace>"
source: https://dev.pageseeder.com/psml/elements/element-monospace.html
description: "PSML Element reference for <monospace>"
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~283
---

# \<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:

```lang-xml

<para>An example of <monospace>&lt;monospace&gt;</monospace>
element.</para>
```

This would typically be converted into HTML as:

```lang-html

<p>An example of <code><monospace&gt;</code> element.</p>
```

## Schema

### XML Schema

```lang-xml

<xs:element name="monospace" type="character-style"/>
```

### Relax Schema

```lang-relax

element monospace { character-style }
```

## Compatibility

This element was introduced in the first draft of PSML and is well-supported from PageSeeder 5.1.

