---
title: s.syntax.keyword
description: "## Syntax **s.syntax.keyword** ## Purpose The s.keyword annotation is used to tag a span element as being an exact word or phrase used in the program. This content will be included as a part of a syntax diagram.   The…"
url: "https://www.stilo.com/docs/migrate/task/s-syntax-keyword/"
updated: "2023-12-18"
category: Annotations / Task
tags:
  - Annotations
---

# s.syntax.keyword

## Syntax

**s.syntax.keyword**

## Purpose

The s.keyword annotation is used to tag a span element as being an exact word or phrase used in the program. This content will be included as a part of a syntax diagram.

 

The DITA tag applied by this annotation is <kwd>, which is a specific variant of the <keyword> tag. See s.keyword for more information.

## Example

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

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-s.syntax.keyword0.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-s.syntax.keyword1.png)

The following is the DITA XML output for the rule:

>>-**<kwd>2</kwd>**--<oper>*</oper>--<var>user_input</var>--<delim>=</delim>

 
