---
title: p.example
description: "## Syntax **p.example** ## Purpose The p.example annotation is used to identify information that demonstrates or further explains a topic. This ensures that examples remain separated from the main body text. ## Examples The following is an example of a…"
url: "https://www.stilo.com/docs/migrate/prolog/p-example/"
updated: "2023-11-08"
category: Annotations / Prolog
tags:
  - Annotations
---

# p.example

## Syntax

**p.example**

## Purpose

The p.example annotation is used to identify information that demonstrates or further explains a topic. This ensures that examples remain separated from the main body text.

## Examples

The following is an example of a time where you might want to use the p.example annotation:

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.example0.png)

The following is an example of a rule that will apply p.example:

![](https://www.stilo.com/wp-content/uploads/2023/11/stilo-dita-xml-annotation-p.example1.png)

In this example, the context class **exampleText** is set to true by a rule applying a title annotation to the preceding paragraph.

The following is an example of the DITA output you would get from this annotation.

```
<example>
<title>Example</title>
 <p>To solve y = 3(4) + 2, first multiply 3 and 4 together to get 12. Then add 2 to get y = 14.</p>
</example>
```
