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

# \<underline\>

## Summary

The `<underline>` element can be used to underline a span of text or provide some emphasis.

Other character-style elements: `<bold>`, `<italic>`, `<monospace>,` `<sub>,` `<sup>`

## Usage context

| Element category | character-style |
| --- | --- |
| PSML level | portable |
| Permitted content | text or other character-style elements |
| Permitted parent |  |
| HTML equivalent | `<u>` |
| OpenXML equivalent | `<w:r>` with `<w:u>` run property. |

## Attributes

No attributes.

## Examples

```lang-xml
<para><underline>BEWARE!</underline> This dog is very dangerous!</para>
```

## Schema

### XML Schema

```lang-xml
<xs:element name="underline" type="character-style"/>
```

### Relax Schema

```lang-relax
element underline { character-style }
```

## Compatibility

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

