---
title: "p.title.for-preceding-content"
description: "## Syntax **p.title.for-preceding-content** ## Purpose The p.title.for-preceding-content annotation tags a paragraph as being a title for content located immediately before it. The preceding content can be any format that is not a new topic (e.g. text, image, link). ## Examples…"
url: "https://www.stilo.com/docs/migrate/prolog/p-title-for-preceding-content-3/"
updated: "2023-11-03"
category: Annotations / Prolog
tags:
  - Annotations
---

# p.title.for-preceding-content

## Syntax

**p.title.for-preceding-content**

## Purpose

The p.title.for-preceding-content annotation tags a paragraph as being a title for content located immediately before it. The preceding content can be any format that is not a new topic (e.g. text, image, link).

## Examples

The following is an example of a time where you might want to use the p.title-for-preceding-content annotation:

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

The following is an example of a rule that will apply p.title.for-preceding-content:

![](https://www.stilo.com/wp-content/uploads/2023/11/stilo-dita-xml-annotation-p.title_.for-preceding-content1-1024x111.png)

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

 

`<fig>
<image href="image2.png" width="8.466cm" height="6.35cm">
<alt>A black and white smiley face Description automatically generated with low confidence</alt>
</image>
</fig>
<title>Figure 2. Happy Face</title></fig>```

 

 
