# \<tag>

## \<tag>

A tag is an arbitrary string that may be included inline within any legal rule expansion. Any number of tags may be included inline within a rule expansion. Tags may contain content for semantic interpretation. The semantic interpretation processes may affect the recognition result.

### Attributes

None

### Notes

SWI\_literal can be used to do slot filling in your current `<field>` without actually stating the name of the current `<field>` (see example below). For examples and usage information, please refer to the [Speech Recognition Grammar Specification](http://www.w3.org/TR/2002/CR-speech-grammar-20020626/).

### Example

```markup
<?xml version="1.0"?>
<vxml version="2.0">
  <form id="start">
    <field name="dt">
      <grammar root="main" type="application/srgs+xml" mode="voice">
        <rule id="main" scope="public">
          <item>
            <ruleref uri="#month"/>
            <ruleref uri="#day"/>
          </item>
          <tag> month = month.SWI_literal; day = day.SWI_literal; </tag>
        </rule>
              
        <rule id="month">
          <one-of>
            <item>May</item>
            <item>June</item>
            <item>October</item>
          </one-of>
        </rule>
              
        <rule id="day">
          <one-of>
            <item>first</item>
            <item>second</item>
            <item>third</item>
          </one-of>
        </rule>  
      </grammar>
            
      <prompt>Please say a date.</prompt>
            
      <filled>
        <prompt bargein="false">
          I think you said month <value expr="dt.month"/> 
          day <value expr="dt.day"/>.
        </prompt>
      </filled>
            
      <nomatch>
        I'm sorry, I didn't catch that.
        <reprompt/>
      </nomatch>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Please say a date.\
> Human: June second.\
> Computer: I think you said month June day second.

### Child Tags

None

### Parent Tags

[\<item>](/dev/voicexml/tags/item-tag.md), [\<rule>](/dev/voicexml/tags/rule-tag.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.plumvoice.com/dev/voicexml/tags/tag-tag.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
