# \<example>

## \<example> <a href="#example" id="example"></a>

Any number of “example” elements may be provided as the initial content within a “rule” element. The content of this element is disregarded by the parser.

### Attributes

None

### Notes

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>
    <field name="animal">
      <grammar type="application/srgs+xml" root="ROOT" mode="voice">
        <rule id="ROOT">
          <example> feed the dog </example>
          <example> scratch the cat </example>
          <one-of>
            <item>Dog</item>
            <item>Cat</item>
          </one-of>
        </rule>
      </grammar>
      <prompt>
        Say either dog or cat.
      </prompt>
      <filled>
        <prompt>
      	  You said, <value expr="animal"/>.
        </prompt>
        <exit/>
      </filled>
    </field>
  </form>
</vxml>
```

The output of the above script would be:

> Computer: Say either dog or cat.\
> User: \<say: 'Cat'>\
> Computer: You said cat. \*application hangs up\*

Note that the `<example>` tag has no effect on the script.

### Child Tags

None

### Parent Tags

[\<rule>](https://docs.plumvoice.com/dev/voicexml/tags/rule-tag)
