---
title: "p.variable-name"
description: "## Syntax **p.variable-name**   ## Purpose The p.variable-name annotation is used to tag an element as being the generic name of a variable. ## Examples The following is an example of a time when you might want to use the…"
url: "https://www.stilo.com/docs/migrate/programming/p-variable-name/"
updated: "2023-12-18"
category: Annotations / Programming
tags:
  - Annotations
---

# p.variable-name

## Syntax

**p.variable-name**

 

## Purpose

The p.variable-name annotation is used to tag an element as being the generic name of a variable.

## Examples

The following is an example of a time when you might want to use the annotations

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

 

The following is an example of a rule that will apply the annotation

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

The following is the DITA XML output for the rule:

<p>In this document, variables will appear as follows:</p>

<varname>&lt;variable></varname>
