> For the complete documentation index, see [llms.txt](https://velara-3.gitbook.io/web-export/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://velara-3.gitbook.io/web-export/element-options/text-ids.md).

# Text Ids

Text IDs wrap text in a text field with a span with an ID that you define.

![](/files/-Loq0TDG5-eyu3u8inRM)

The reason for wrapping a word or phrase with a span with an ID is so you can refer to it later with JavaScript using document.getElementById(“nameID”).

For example, if your text in a text field was,

`The mouse jumped over the moon`

and you defined a text id, “mouse:nameID” then the final HTML output would be,

`The <span id="nameId">mouse</span> jumped over the moon`

Separate each text id name and value pair with a semicolon.

Text IDs are case sensitive.

To set a text ID:&#x20;

1. Select a text field and open the element options

![](/files/-LopycQeyfSAIQOYDIbf)

2\. In the Text ID field enter the text you want to find and then the id to use to reference it

![](/files/-Lopymm0x0s2ijSlY1wI)

Before:

![](/files/-Lopz8S6XMrlZLgmOErZ)

After:&#x20;

![](/files/-LopzByN0KR8wAbzjsmb)

{% embed url="<https://developer.mozilla.org/en-US/docs/Glossary/HTML>" %}

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id>" %}

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/id>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://velara-3.gitbook.io/web-export/element-options/text-ids.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
