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

# \<inline\>

## Summary

The `<inline>` element is used to label a span of text.

This is generally used to define specific semantics for some text or an image within a block-level element. The equivalent block-level element is the `<block>` element.

## Usage context

| Element category | character-style |
| --- | --- |
| PSML level | portable |
| Permitted content | text and character-style elements + images |
| Permitted parent |  |
| HTML equivalent | `<span>` |
| OpenXML equivalent |  |

## Attributes

This element includes the following attributes:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| label | [label](../datatypes/pageseeder_datatypes.md) | no | Name of the label |

### `@label`

The name of the label for the block.

## Examples

A paragraph with an inline label to markup the author.

```lang-xml

<para>Alice in wonderland was written by
  <inline label="author">Lewis Carroll</inline>.</para>
```

This would typically be converted to HTML as:

```lang-html

<p>Alice in wonderland was written by
  <span class="author">Lewis Carroll</span></p>
```

## Schema

### XML Schema

```lang-xml

<xs:element name="inline">
  <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:group ref="character-style-group"/>
      <xs:element ref="image"/>
    </xs:choice>
    <xs:attribute name="label" type="label" use="required"/>
  </xs:complexType>
</xs:element>
```

### Relax Schema

```lang-relax

element inline {
   attribute label { label },
   character-style-and-image
}
```

## Compatibility

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

