---
title: p.task.context
description: "## Syntax **p.task.context** ## Purpose The p.task.context annotation is used to tag an element as being information explaining why a task is done a certain way, or why a task must be done. This information establishes the situation surrounding a…"
url: "https://www.stilo.com/docs/migrate/prolog/p-task-context/"
updated: "2023-11-08"
category: Annotations / Prolog
tags:
  - Annotations
---

# p.task.context

## Syntax

**p.task.context**

## Purpose

The p.task.context annotation is used to tag an element as being information explaining why a task is done a certain way, or why a task must be done. This information establishes the situation surrounding a task.

This annotation does not contain prerequisite information. For prerequisites, see p.task.prereq.

## Examples

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

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

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

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

**Note**: this rule applies three annotations. In this example, Migrate will apply the s.simpletable.head.entry annotation only to a span which has the SimpleHeadChar style.

See s.simpletable.head.entry and delete-data-content for more information.

The following is the DITA XML output for the previous rule (relevant portion in bold):

 

<context><p>Peanut butter sandwiches are fine but can be boring. You can add extra ingredients to improve the sandwich and make it more enjoyable.</p></context>

````
